Skip to content

Commit 4ae1831

Browse files
committed
create dockerfile
1 parent ae77723 commit 4ae1831

File tree

3 files changed

+13
-25
lines changed

3 files changed

+13
-25
lines changed

Dockerfile

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
# BUILD: docker build --rm -t airflow .
22
# ORIGINAL SOURCE: https://github.com/puckel/docker-airflow
33

4-
FROM python:3.6-slim
4+
FROM python:3.7-slim
55
LABEL version="1.0"
6-
LABEL maintainer="nicor88"
6+
LABEL maintainer="andresionek91"
77

88
# Never prompts the user for choices on installation/configuration of packages
99
ENV DEBIAN_FRONTEND noninteractive
1010
ENV TERM linux
1111

1212
# Airflow
13-
# it's possible to use v1-10-stable, but it's a development branch
14-
ARG AIRFLOW_VERSION=1.10.3
13+
ARG AIRFLOW_VERSION=1.10.10
1514
ENV AIRFLOW_HOME=/usr/local/airflow
1615
ENV AIRFLOW_GPL_UNIDECODE=yes
16+
1717
# celery config
1818
ARG CELERY_REDIS_VERSION=4.2.0
1919
ARG PYTHON_REDIS_VERSION=3.2.0
@@ -66,7 +66,7 @@ RUN set -ex \
6666
&& pip install pyOpenSSL \
6767
&& pip install ndg-httpsclient \
6868
&& pip install pyasn1 \
69-
&& pip install git+https://github.com/apache/incubator-airflow.git@${AIRFLOW_VERSION}#egg=apache-airflow[async,crypto,celery,kubernetes,jdbc,password,postgres,s3,slack] \
69+
&& pip install apache-airflow[async,crypto,celery,kubernetes,jdbc,password,postgres,s3,slack]==${AIRFLOW_VERSION} \
7070
&& pip install werkzeug==${WERKZEUG_VERSION} \
7171
&& pip install redis==${PYTHON_REDIS_VERSION} \
7272
&& pip install celery[redis]==${CELERY_REDIS_VERSION} \

Makefile

+6-20
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,9 @@
1-
airflow-up:
2-
@docker-compose up --build
1+
cloudformation-validate:
2+
python -c 'from deploy_cloudformation import validate_templates; validate_templates()';
33

4-
airflow-down:
5-
@docker-compose down
4+
cloudformation-deploy: cloudformation-validate
5+
python -c 'from deploy_cloudformation import create_or_update_stacks; create_or_update_stacks()';
66

7-
infra-get:
8-
cd infrastructure && terraform get;
7+
cloudformation-destroy:
8+
python -c 'from deploy_cloudformation import destroy_stacks; destroy_stacks()';
99

10-
infra-init: infra-get
11-
cd infrastructure && terraform init -upgrade;
12-
13-
infra-plan: infra-init
14-
cd infrastructure && terraform plan;
15-
16-
infra-apply: infra-plan
17-
cd infrastructure && terraform apply;
18-
19-
infra-destroy:
20-
cd infrastructure && terraform destroy;
21-
22-
clean:
23-
rm -rf postgres_data

config/entrypoint.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
#!/usr/bin/env bash
2+
# ORIGINAL SOURCE: https://github.com/nicor88/aws-ecs-airflow/
3+
24

35
TRY_LOOP="20"
46

0 commit comments

Comments
 (0)