mirror of
https://github.com/ChristianLight/tutor.git
synced 2025-01-10 00:37:54 +00:00
fix: clean translations before pulling them (#1026)
If one is using a bind-mounted edx-platform directory, they may already have pulled translations. This will cause the Docker build to fail with: CommandError: "/openedx/edx-platform/conf/plugins-locale/plugins" should be empty before running atlas pull. To fix this, we simply clean out the edx-platform translation target directories before pulling in the Dockerfile.
This commit is contained in:
parent
77e6d34821
commit
f5dbd5465d
@ -193,6 +193,7 @@ COPY --chown=app:app settings/lms/*.py ./lms/envs/tutor/
|
||||
COPY --chown=app:app settings/cms/*.py ./cms/envs/tutor/
|
||||
|
||||
# Pull latest translations via atlas
|
||||
RUN make clean_translations
|
||||
RUN ./manage.py lms --settings=tutor.i18n pull_plugin_translations --verbose --repository='{{ ATLAS_REPOSITORY }}' --revision='{{ ATLAS_REVISION }}' {{ ATLAS_OPTIONS }}
|
||||
RUN ./manage.py lms --settings=tutor.i18n pull_xblock_translations --repository='{{ ATLAS_REPOSITORY }}' --revision='{{ ATLAS_REVISION }}' {{ ATLAS_OPTIONS }}
|
||||
RUN atlas pull --repository='{{ ATLAS_REPOSITORY }}' --revision='{{ ATLAS_REVISION }}' {{ ATLAS_OPTIONS }} \
|
||||
|
Loading…
Reference in New Issue
Block a user