Skip to content

Commit

Permalink
feat: add atlas pull for the communications app
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarIthawi committed Sep 29, 2023
1 parent f0aa8a5 commit 8ab7148
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tutormfe/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,10 @@ def gh_refs_path() -> str:
},
"communications": {
"repository": "https://github.com/openedx/frontend-app-communications",
"refs": "https://api.github.com/repos/openedx/frontend-app-communications/git/refs/" + gh_refs_path(),
"refs": "https://api.github.com/repos/openedx/frontend-app-communications/git/refs/" + 'heads',
"port": 1984,
"version": "master",
"atlas_pull": True,
},
"course-authoring": {
"repository": "https://github.com/openedx/frontend-app-course-authoring",
Expand Down
9 changes: 9 additions & 0 deletions tutormfe/templates/mfe/build/mfe/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,15 @@ COPY --from={{ app_name }}-git /openedx/app /
######## {{ app_name }} (i18n)
FROM base AS {{ app_name }}-i18n
COPY --from={{ app_name }}-src / /openedx/app
{% if app.get("atlas_pull") %}
RUN npm install --no-save "@edx/frontend-platform" "@edx/openedx-atlas@~0" # TODO: Move that to a better place
ENV PATH /openedx/app/node_modules/.bin:${PATH}
# transifex_langs="" means all languages
RUN make OPENEDX_ATLAS_PULL=true transifex_langs="" pull_translations

# Uncomment to print debug messages
# RUN ls -R /openedx/app/src/i18n/; cat /openedx/app/src/i18n/index.js; exit 1
{% endif %}
COPY --from=i18n /openedx/i18n/{{ app_name }} /openedx/i18n/{{ app_name }}
COPY --from=i18n /openedx/i18n/i18n-merge.js /openedx/i18n/i18n-merge.js
RUN stat /openedx/app/src/i18n/messages 2> /dev/null || (echo "missing messages folder" && mkdir -p /openedx/app/src/i18n/messages)
Expand Down

0 comments on commit 8ab7148

Please sign in to comment.