Skip to content

Commit

Permalink
fix: do not run mysql as a dependency when RUN_MYSQL=False
Browse files Browse the repository at this point in the history
Aspects would fail if someone was using an external MySQL server
We now only add MySQL as a dependency to containers if RUN_MYSQL=True
  • Loading branch information
Danyal-Faheem committed Nov 27, 2024
1 parent bde88d7 commit a0cc6bf
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions tutoraspects/patches/local-docker-compose-dev-services
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ superset:
ports:
- 8088:{{ SUPERSET_PORT }}
depends_on:
- mysql
{% if RUN_MYSQL %}- mysql{% endif %}
- redis
- superset-worker
- superset-worker-beat
Expand All @@ -22,7 +22,7 @@ superset-worker:
healthcheck:
test: ["CMD-SHELL", "celery inspect ping -A superset.tasks.celery_app:app -d celery@$$HOSTNAME"]
depends_on:
- mysql
{% if RUN_MYSQL %}- mysql{% endif %}
- redis

superset-worker-beat:
Expand All @@ -34,7 +34,7 @@ superset-worker-beat:
healthcheck:
disable: true
depends_on:
- mysql
{% if RUN_MYSQL %}- mysql{% endif %}
- redis
{% endif %}

Expand Down
2 changes: 1 addition & 1 deletion tutoraspects/patches/local-docker-compose-jobs-services
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,6 @@ superset-job:
OPENEDX_LMS_ROOT_URL: "{% if ENABLE_HTTPS %}https{% else %}http{% endif %}://{{ LMS_HOST }}"
OAUTH2_CLIENT_ID: {{ SUPERSET_OAUTH2_CLIENT_ID }}
depends_on:
- mysql
{% if RUN_MYSQL %}- mysql{% endif %}
- redis
{% endif %}
6 changes: 3 additions & 3 deletions tutoraspects/patches/local-docker-compose-services
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ superset:
ports:
- 8088:{{ SUPERSET_PORT }}
depends_on:
- mysql
{% if RUN_MYSQL %}- mysql{% endif %}
- redis

superset-worker:
Expand All @@ -65,7 +65,7 @@ superset-worker:
healthcheck:
test: ["CMD-SHELL", "celery inspect ping -A superset.tasks.celery_app:app -d celery@$$HOSTNAME"]
depends_on:
- mysql
{% if RUN_MYSQL %}- mysql{% endif %}
- redis

superset-worker-beat:
Expand All @@ -77,7 +77,7 @@ superset-worker-beat:
healthcheck:
disable: true
depends_on:
- mysql
{% if RUN_MYSQL %}- mysql{% endif %}
- redis
{% endif %}

Expand Down

0 comments on commit a0cc6bf

Please sign in to comment.