-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from unacast/airflow-2-fixes
Airflow 2 fixes
- Loading branch information
Showing
3 changed files
with
20 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,15 @@ | ||
FROM docker:17.12.0-ce as static-docker-source | ||
ARG AIRFLOW_IMAGE_NAME="1.10.15-python3.6" | ||
|
||
FROM python:3.6-stretch | ||
ARG CLOUD_SDK_VERSION=297.0.1 | ||
ENV CLOUD_SDK_VERSION=$CLOUD_SDK_VERSION | ||
FROM "apache/airflow:${AIRFLOW_IMAGE_NAME}" | ||
|
||
COPY --from=static-docker-source /usr/local/bin/docker /usr/local/bin/docker | ||
RUN apt-get -qqy update && apt-get install -qqy \ | ||
curl \ | ||
gcc \ | ||
apt-transport-https \ | ||
lsb-release \ | ||
openssh-client \ | ||
git \ | ||
gnupg \ | ||
&& pip install -U crcmod && \ | ||
export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)" && \ | ||
echo "deb https://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" > /etc/apt/sources.list.d/google-cloud-sdk.list && \ | ||
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | apt-key add - && \ | ||
apt-get update && \ | ||
apt-get install -y google-cloud-sdk=${CLOUD_SDK_VERSION}-0 kubectl && \ | ||
gcloud config set core/disable_usage_reporting true && \ | ||
gcloud config set component_manager/disable_update_check true && \ | ||
gcloud config set metrics/environment github_docker_image && \ | ||
gcloud --version && \ | ||
docker --version && kubectl version --client | ||
# - Install GCP util | ||
RUN curl -sSL https://sdk.cloud.google.com | bash | ||
ENV PATH $PATH:/home/airflow/google-cloud-sdk/bin | ||
|
||
|
||
# - Install dependencies | ||
CMD echo "Installing dependencies" | ||
|
||
RUN apt-get install default-libmysqlclient-dev -qqy | ||
ENV AIRFLOW_GPL_UNIDECODE="yes" | ||
#ENV SLUGIFY_USES_TEXT_UNIDECODE="yes" | ||
# Default requirements | ||
ADD requirements.txt /tmp/requirements.txt | ||
RUN pip3 install -r /tmp/requirements.txt | ||
# Extra requirements | ||
ADD requirements.extra.txt /tmp/requirements.extra.txt | ||
RUN pip3 install -r /tmp/requirements.extra.txt | ||
RUN pip3 install --no-deps -r /tmp/requirements.txt -r /tmp/requirements.extra.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
apache-airflow[gcp,postgres,sendgrid,kubernetes,aws,slack]==1.10.15 | ||
# Testing | ||
pytest==5.3.5 | ||
flake8==3.7.9 |