Skip to content

Commit

Permalink
refactor: move uswgi out of platform directory (overhangio#1036)
Browse files Browse the repository at this point in the history
  • Loading branch information
DawoudSheraz authored Jul 30, 2024
1 parent b259376 commit a97a7b0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions tutor/templates/build/openedx/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@ FROM production AS final
ENV UWSGI_WORKERS=2

# Copy the default uWSGI configuration
COPY --chown=app:app settings/uwsgi.ini .
COPY --chown=app:app settings/uwsgi.ini /openedx

# Run server
CMD ["uwsgi", "uwsgi.ini"]
CMD ["uwsgi", "/openedx/uwsgi.ini"]

{{ patch("openedx-dockerfile-final") }}

4 changes: 2 additions & 2 deletions tutor/templates/k8s/deployments.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ spec:
name: settings-cms
- mountPath: /openedx/config
name: config
- mountPath: /openedx/edx-platform/uwsgi.ini
- mountPath: /openedx/uwsgi.ini
name: uwsgi-config
subPath: uwsgi.ini
resources:
Expand Down Expand Up @@ -204,7 +204,7 @@ spec:
name: settings-cms
- mountPath: /openedx/config
name: config
- mountPath: /openedx/edx-platform/uwsgi.ini
- mountPath: /openedx/uwsgi.ini
name: uwsgi-config
subPath: uwsgi.ini
resources:
Expand Down
4 changes: 2 additions & 2 deletions tutor/templates/local/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ services:
- ../apps/openedx/settings/lms:/openedx/edx-platform/lms/envs/tutor:ro
- ../apps/openedx/settings/cms:/openedx/edx-platform/cms/envs/tutor:ro
- ../apps/openedx/config:/openedx/config:ro
- ../apps/openedx/uwsgi.ini:/openedx/edx-platform/uwsgi.ini:ro
- ../apps/openedx/uwsgi.ini:/openedx/uwsgi.ini:ro
- ../../data/lms:/openedx/data
- ../../data/openedx-media:/openedx/media
{%- for mount in iter_mounts(MOUNTS, "openedx", "lms") %}
Expand All @@ -135,7 +135,7 @@ services:
- ../apps/openedx/settings/lms:/openedx/edx-platform/lms/envs/tutor:ro
- ../apps/openedx/settings/cms:/openedx/edx-platform/cms/envs/tutor:ro
- ../apps/openedx/config:/openedx/config:ro
- ../apps/openedx/uwsgi.ini:/openedx/edx-platform/uwsgi.ini:ro
- ../apps/openedx/uwsgi.ini:/openedx/uwsgi.ini:ro
- ../../data/cms:/openedx/data
- ../../data/openedx-media:/openedx/media
{%- for mount in iter_mounts(MOUNTS, "openedx", "cms") %}
Expand Down

0 comments on commit a97a7b0

Please sign in to comment.