Skip to content

Commit

Permalink
Merge pull request #995 from edly-io/danyal/fix-external-mysql-depend…
Browse files Browse the repository at this point in the history
…ency

fix: do not add mysql as a dependency when RUN_MYSQL=False
  • Loading branch information
Cristhian Garcia authored Nov 27, 2024
2 parents bde88d7 + a0cc6bf commit c17ff72
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 c17ff72

Please sign in to comment.