Page MenuHomeDevCentral

D3276.id8421.diff
No OneTemporary

D3276.id8421.diff

diff --git a/roles/paas-docker/containers/airflow.sls b/roles/paas-docker/containers/airflow.sls
--- a/roles/paas-docker/containers/airflow.sls
+++ b/roles/paas-docker/containers/airflow.sls
@@ -20,7 +20,7 @@
- group: 0
- makedirs: True
-{% for subdir in ["dags", "logs", "plugins"] %}
+{% for subdir in ["dags", "logs", "plugins", "workspace"] %}
/srv/airflow/{{ realm }}/{{ subdir }}:
file.directory:
- user: 50000
@@ -110,6 +110,7 @@
- /srv/airflow/{{ realm }}/dags:/opt/airflow/dags
- /srv/airflow/{{ realm }}/logs:/opt/airflow/logs
- /srv/airflow/{{ realm }}/plugins:/opt/airflow/plugins
+ - /srv/airflow/{{ realm }}/workspace:/home/airflow/workspace
- /srv/airflow/{{ realm }}/airflow.cfg:/opt/airflow/airflow.cfg
{% if "app_port" in container %}
- ports:
diff --git a/roles/paas-docker/containers/files/airflow/airflow.sh.jinja b/roles/paas-docker/containers/files/airflow/airflow.sh.jinja
--- a/roles/paas-docker/containers/files/airflow/airflow.sh.jinja
+++ b/roles/paas-docker/containers/files/airflow/airflow.sh.jinja
@@ -52,6 +52,7 @@
docker run -it --rm \
--network {{ network }} \
+ -v /srv/airflow/{{ realm }}/workspace:/home/airflow/workspace \
-v /srv/airflow/{{ realm }}/airflow.cfg:/opt/airflow/airflow.cfg \
-e _PIP_ADDITIONAL_REQUIREMENTS="" \
-e CONNECTION_CHECK_MAX_COUNT=0 \

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 23, 19:17 (18 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2258739
Default Alt Text
D3276.id8421.diff (1 KB)

Event Timeline