[FarFlow] Using AWS Fargate(ECS) to host Apache Airflow

This commit is contained in:
Chaithanya Maisagoni
2020-08-12 16:34:16 -07:00
commit ecde2a83a2
23 changed files with 1750 additions and 0 deletions

View File

@@ -0,0 +1,7 @@
FROM python:3.8-slim
ENV USER_HOME=/usr/local/farflow
COPY . ${USER_HOME}/app
WORKDIR ${USER_HOME}/app
CMD ["python","numbers.py", '10']

View File

@@ -0,0 +1,11 @@
from argparse import ArgumentParser
parser = ArgumentParser(description='Airflow Fargate Example')
parser.add_argument('number', help='number', type=int)
if __name__ == '__main__':
args = parser.parse_args()
number = args.number
print("Printing all numbers in given range")
for i in range(int(number)):
print(i)