Skip to content

Commit 441382e

Browse files
committed
feat: mount themes & requirements in dev job containers
These bind-mounts: * ../build/openedx/themes:/openedx/themes * ../build/openedx/requirements:/openedx/requirements existed in the dev lms and cms containers, but they did not exist in the lms-job and cms-job containers. This means that themes and requirements that were *built into the image* would exist in the job containers, but live updates to the themes and requirements would not apply. To resolve this, we set ``volumes:`` on the lms-job and cms-job services so that they match the volumes for the normal lms and cms services.
1 parent a0e7caf commit 441382e

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tutor/templates/dev/docker-compose.jobs.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@ x-openedx-job-service:
99
args:
1010
# Note that we never build the openedx-dev image with root user ID, as it would simply fail.
1111
APP_USER_ID: "{{ HOST_USER_ID or 1000 }}"
12+
volumes:
13+
# Settings & config
14+
- ../apps/openedx/settings/lms:/openedx/edx-platform/lms/envs/tutor:ro
15+
- ../apps/openedx/settings/cms:/openedx/edx-platform/cms/envs/tutor:ro
16+
- ../apps/openedx/config:/openedx/config:ro
17+
# theme files
18+
- ../build/openedx/themes:/openedx/themes
19+
# editable requirements
20+
- ../build/openedx/requirements:/openedx/requirements
1221

1322
services:
1423

0 commit comments

Comments
 (0)