forked from datamindedacademy/workflows_with_airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.gitpod.yml
38 lines (34 loc) · 1.15 KB
/
.gitpod.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
checkoutLocation: "."
workspaceLocation: "workspace"
tasks:
- name: Pull images
env:
AIRFLOW_IMAGE_NAME: dmacademy/airflow:2.3.4
init: |
docker-compose --file ../docker-compose.yml pull
gp sync-done pull
- name: Boot Airflow
env:
AIRFLOW_IMAGE_NAME: dmacademy/airflow:2.3.4
init: |
gp sync-await pull
docker-compose --file ../docker-compose.yml up airflow-init
before: |
mkdir -p ./mount/dags ./mount/logs ./mount/plugins
echo -e "AIRFLOW_UID=$(id -u)" >> ../.env
# docker build . --tag academy-airflow:2.2.3
# echo -e "AIRFLOW_IMAGE_NAME=academy-airflow:2.2.3" >> ../.env
# Make sure to add these to your gitpod variables: https://gitpod.io/variables
# Their value can be obtained from the "terraform apply" outputs.
echo -e "AWS_ACCESS_KEY_ID=${AIRFLOW_IAM_ACCESS_KEY}" >> ../.env
echo -e "AWS_SECRET_ACCESS_KEY=${AIRFLOW_IAM_SECRET_ACCESS_KEY}" >> ../.env
command: |
docker-compose --file ../docker-compose.yml up
ports:
- port: 5555
onOpen: ignore
- port: 8080
onOpen: open-browser
vscode:
extensions:
- ms-python.python