Parameterized bash/python in the prod image (#9157)
This commit is contained in:
Родитель
032b8ef44a
Коммит
b809afa3e3
|
@ -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" "${@}"
|
||||
fi
|
||||
|
||||
# Run the command
|
||||
|
|
Загрузка…
Ссылка в новой задаче