Skip to content

Commit

Permalink
added local environment variable (#589)
Browse files Browse the repository at this point in the history
* added local environment variable

* fix tests
  • Loading branch information
neel-astro committed Jul 6, 2022
1 parent cffb036 commit 11b9095
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airflow/docker_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ services:
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://postgres:postgres@postgres:5432
AIRFLOW__CORE__LOAD_EXAMPLES: "False"
AIRFLOW__CORE__FERNET_KEY: "d6Vefz3G9U_ynXB3cr7y_Ak35tAHkEGAVxuz_B-jzWw="
ASTRONOMER_ENVIRONMENT: local
volumes:
- airflow_home/dags:/usr/local/airflow/dags:ro
- airflow_home/plugins:/usr/local/airflow/plugins:z
Expand Down Expand Up @@ -143,6 +144,7 @@ services:
AIRFLOW__CORE__LOAD_EXAMPLES: "False"
AIRFLOW__CORE__FERNET_KEY: "d6Vefz3G9U_ynXB3cr7y_Ak35tAHkEGAVxuz_B-jzWw="
AIRFLOW__WEBSERVER__RBAC: "True"
ASTRONOMER_ENVIRONMENT: local
ports:
- 8080:8080
volumes:
Expand Down Expand Up @@ -179,6 +181,7 @@ services:
AIRFLOW__CORE__LOAD_EXAMPLES: "False"
AIRFLOW__CORE__FERNET_KEY: "d6Vefz3G9U_ynXB3cr7y_Ak35tAHkEGAVxuz_B-jzWw="
AIRFLOW__WEBSERVER__RBAC: "True"
ASTRONOMER_ENVIRONMENT: local
volumes:
- airflow_home/dags:/usr/local/airflow/dags:z
- airflow_home/plugins:/usr/local/airflow/plugins:z
Expand Down
3 changes: 3 additions & 0 deletions airflow/include/composeyml.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ services:
AIRFLOW__CORE__SQL_ALCHEMY_CONN: postgresql://{{ .PostgresUser }}:{{ .PostgresPassword }}@{{ .PostgresHost }}:5432
AIRFLOW__CORE__LOAD_EXAMPLES: "False"
AIRFLOW__CORE__FERNET_KEY: "d6Vefz3G9U_ynXB3cr7y_Ak35tAHkEGAVxuz_B-jzWw="
ASTRONOMER_ENVIRONMENT: local
volumes:
- {{ .AirflowHome }}/dags:/usr/local/airflow/dags:ro
- {{ .AirflowHome }}/plugins:/usr/local/airflow/plugins:{{ .MountLabel }}
Expand Down Expand Up @@ -90,6 +91,7 @@ services:
AIRFLOW__CORE__LOAD_EXAMPLES: "False"
AIRFLOW__CORE__FERNET_KEY: "d6Vefz3G9U_ynXB3cr7y_Ak35tAHkEGAVxuz_B-jzWw="
AIRFLOW__WEBSERVER__RBAC: "True"
ASTRONOMER_ENVIRONMENT: local
ports:
- {{ .AirflowWebserverPort }}:8080
volumes:
Expand Down Expand Up @@ -126,6 +128,7 @@ services:
AIRFLOW__CORE__LOAD_EXAMPLES: "False"
AIRFLOW__CORE__FERNET_KEY: "d6Vefz3G9U_ynXB3cr7y_Ak35tAHkEGAVxuz_B-jzWw="
AIRFLOW__WEBSERVER__RBAC: "True"
ASTRONOMER_ENVIRONMENT: local
volumes:
- {{ .AirflowHome }}/dags:/usr/local/airflow/dags:{{ .MountLabel }}
- {{ .AirflowHome }}/plugins:/usr/local/airflow/plugins:{{ .MountLabel }}
Expand Down
6 changes: 6 additions & 0 deletions airflow/include/podconfigyml.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,8 @@ spec:
value: "False"
- name: ASTRONOMER_USER
value: astro
- name: ASTRONOMER_ENVIRONMENT
value: local
{{ .AirflowEnvFile }}
image: {{ .AirflowImage }}
name: {{ .SchedulerContainerName }}
Expand Down Expand Up @@ -130,6 +132,8 @@ spec:
value: ASTRONOMER
- name: AIRFLOW__CORE__LOAD_EXAMPLES
value: "False"
- name: ASTRONOMER_ENVIRONMENT
value: local
{{ .AirflowEnvFile }}
image: {{ .AirflowImage }}
name: {{ .WebserverContainerName }}
Expand Down Expand Up @@ -176,6 +180,8 @@ spec:
value: ASTRONOMER
- name: AIRFLOW__CORE__LOAD_EXAMPLES
value: "False"
- name: ASTRONOMER_ENVIRONMENT
value: local
{{ .AirflowEnvFile }}
image: {{ .AirflowImage }}
name: {{ .TriggererContainerName }}
Expand Down

0 comments on commit 11b9095

Please sign in to comment.