Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3766613
D3276.id8421.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D3276.id8421.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D3276: Create workspace directory for Airflow pipelines
Attached
Detach File
Event Timeline
Log In to Comment