resdevd commented on pull request #8621:
URL: https://github.com/apache/airflow/pull/8621#issuecomment-623221335


   entrypoint.sh is maintained in dockerfile itself. This PR is docker-compose 
setup using Airflow official Docker Image.
   If you explore the code, you can see one time setup of initdb and inituser 
via docker-exec into main airflow container via a shell script.
   The idea is users who need initdb and intiuser setup can run that script one 
time after deploying docker compose, or users can just use docker-compose by 
replacing env variables for db connection string.
   In this PR, the containers are in restart mode, so users can run that script 
while docker-compose is active. IMO we shouldn't waste resources by having a 
container run just for one time action.
   
   


----------------------------------------------------------------
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:
us...@infra.apache.org


Reply via email to