https://airflow.apache.org/docs/docker-stack/build.html
mkdir -p ./dags ./logs ./plugins ./postgres
- docker-compose up
- Please wait while it configures
- user:
airflow, pass:airflow
Search here before the packages to add it to the image. https://raw.githubusercontent.com/apache/airflow/constraints-2.3.2/constraints-3.7.txt
- Look for the constraints-3.7.txt package, if it doesn't appear you can install the most recent version.
- Open the Python Dockerfile, add the package you want (RUN pip install --no-cache-dir PACKAGE_NAME)
- Save the changes
- Run the following
docker build . -f DockerfileAirflow --pull --tag choc/airflow:2.3.2 - docker-compose down
- docker-compose up