Skip to content

Instantly share code, notes, and snippets.

@kozikow
Created September 19, 2016 19:33
Show Gist options
  • Save kozikow/9290c44f03fba8d0f1299f355ef96b51 to your computer and use it in GitHub Desktop.
Save kozikow/9290c44f03fba8d0f1299f355ef96b51 to your computer and use it in GitHub Desktop.
FROM gcr.io/all-the-codes/docker_base_arch:0.2
ARG docker_airflow_version
ENV DOCKER_IMAGE_VERSION ${docker_airflow_version}
# Although oauth2client is already installed something downgrades it (not cryptography), so it needs to be upgraded again
# Install airflow and dependencies.
# cryptography is required for generating ferret keys.
RUN yaourt -Sy --noconfirm python-psycopg2 && \
yaourt -Scc --noconfirm && \
sudo pip install --no-cache-dir \
airflow[celery,postgresql,gcp_api] \
cryptography \
oauth2client==3.0.0 \
pexpect
RUN sudo pip install requests
RUN sudo pip install -e git+https://github.com/understandwork/pykubepb.git#egg=pykubepb
ENV AIRFLOW_HOME /usr/local/airflow
# 8000 - airflow
# 5555 - flower
# 8973 - airflow worker log proxy
EXPOSE 8000 5555 8793
# Put it in app. entrypoint.py puts it in correct places.
ADD . ${AIRFLOW_HOME}
WORKDIR ${AIRFLOW_HOME}
RUN sudo chown -R user: ${AIRFLOW_HOME} && \
sudo chmod +x $AIRFLOW_HOME/entrypoint.py
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment