airflow-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jarek Potiuk <ja...@potiuk.com>
Subject Re: Execute bash command after image startup
Date Sat, 21 Aug 2021 19:49:28 GMT
BTW. You can read more about the "official image" entrypoint and
particularly about running commands here (
https://airflow.apache.org/docs/docker-stack/entrypoint.html#executing-commands
):

On Sat, Aug 21, 2021 at 9:46 PM Jarek Potiuk <jarek@potiuk.com> wrote:

> The image has entrypoint that accepts `bash` command and when you run your
> docker-compose, you are free to provide any startup command (as long as you
> continue using the default entrypoint)
>
> Your docker compose entries can specify any bash command to run for your
> docker containers, for example:
>
> airflow-worker:
>   command:
>     - bash
>     - -c
>     - |
>       run_your_command_here
>       airflow worker
>
>
> This will run "run_your_command_here" before starting the worker.
>
> --
> +48 660 796 129
>


-- 
+48 660 796 129

Mime
View raw message