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/12/16 22:21:58 UTC

[GitHub] [airflow] mik-laj edited a comment on issue #8605: Add Production-ready docker compose for the production image

mik-laj edited a comment on issue #8605:
URL: https://github.com/apache/airflow/issues/8605#issuecomment-747064480


   @BasPH  shared on Slack: one-line command to start Airflow in docker: 
   
   > In case you’ve ever wondered how to get the Airflow image to work in a one-liner (for demo purposes), here’s how:
   > ```
   > docker run -ti -p 8080:8080 -v yourdag.py:/opt/airflow/dags/yourdag.py --entrypoint=/bin/bash apache/airflow:2.0.0b3-python3.8 -c '(airflow db init && airflow users create --username admin --password admin --firstname Anonymous --lastname Admin --role Admin --email admin@example.org); airflow webserver & airflow scheduler'
   > ```
   > Creates a user `admin`/`admin` and runs a SQLite metastore in the container
   
   https://apache-airflow.slack.com/archives/CQAMHKWSJ/p1608152276070500
   


----------------------------------------------------------------
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