You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2020/06/05 20:03:05 UTC

[GitHub] [airflow] ashb commented on a change in pull request #9157: Parameterized bash/python in the prod image

ashb commented on a change in pull request #9157:
URL: https://github.com/apache/airflow/pull/9157#discussion_r436138753



##########
File path: entrypoint.sh
##########
@@ -103,7 +103,11 @@ if [[ -n ${AIRFLOW__CELERY__BROKER_URL} ]] && \
 fi
 
 if [[ ${AIRFLOW_COMMAND} == "bash" ]]; then
-   exec "/bin/bash"
+   shift
+   exec "/bin/bash" "${@}"
+elif [[ ${AIRFLOW_COMMAND} == "python" ]]; then
+   shift
+   exec "python" "${@}"

Review comment:
       ```suggestion
   elif [[ ${AIRFLOW_COMMAND} == "python"* ]]; then
      shift
      exec "${AIRFLOW_COMMAND}'" "${@}"
   ```
   
   That way it would work with `python`, `python3` etc. (Haven't checked my syntax)




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org