What’s the best way to have the Airflow scheduler ...
# troubleshooting
s
What’s the best way to have the Airflow scheduler running in a containerized Meltano project? My current setup doesn’t use docker-compose - this is what I’m trying in the Dockerfile but it’s not working:
Copy code
# Start the aiflow scheduler in the background. 
RUN meltano invoke airflow scheduler -D 
RUN meltano invoke airflow webserver -p 8080 -D
sorry if this doesn’t make the most sense. I can’t seem to have the scheduler running in prod. I can run the scheduler in the foreground, and that picks up the etl jobs no problem.
d
Commands in the dockerfile will only run as part of the build process, they won’t be running automatically once you deploy the container. What are you using to orchestrate your Docker containers if not Docker-compose? That’s where’d you want to say “use this container and use this as the initial command”
s
ah that totally helps @douwe_maan. I have a simple shell script that spinning up the container on AWS Fargate, but nothing beyond that to specify what commands to run
seems like docker-compose is the way to go
d
@saadat_qadri Fargate should have a way to specify an entrypoint comment
Or your script that runs
docker run