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/05/14 09:00:43 UTC

[GitHub] [airflow] wittfabian commented on issue #8605: Add Production-ready docker compose for the production image

wittfabian commented on issue #8605:
URL: https://github.com/apache/airflow/issues/8605#issuecomment-628498558


   @potiuk Is this the preferred way to add dependencies (airflow-mssql)?
   
   ```
   # Custom Dockerfile
   FROM apache/airflow:1.10.10
   
   # Install mssql support & dag dependencies
   USER root
   RUN apt-get update -yqq \
       && apt-get install -y gcc freetds-dev \
       && apt-get install -y git procps \ 
       && apt-get install -y vim
   RUN pip install apache-airflow[mssql,mssql,ssh,s3,slack] 
   RUN pip install azure-storage-blob sshtunnel google-api-python-client oauth2client \
       && pip install git+https://github.com/infusionsoft/Official-API-Python-Library.git \
       && pip install rocketchat_API
   
   # This fixes permission issues on linux. 
   # The airflow user should have the same UID as the user running docker on the host system.
   # make build is adjust this value automatically
   ARG DOCKER_UID
   RUN \
       : "${DOCKER_UID:?Build argument DOCKER_UID needs to be set and non-empty. Use 'make build' to set it automatically.}" \
       && usermod -u ${DOCKER_UID} airflow \
       && find / -path /proc -prune -o -user 50000 -exec chown -h airflow {} \; \
       && echo "Set airflow's uid to ${DOCKER_UID}"
   
   USER airflow
   ```


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