Skip to content

Commit

Permalink
feat: add atlas step to the build - FC-0012
Browse files Browse the repository at this point in the history
Adding the pull behind a feature flag until it's fully implemented

Refs: FC-0012 OEP-58
  • Loading branch information
shadinaif committed Nov 26, 2023
1 parent 50aa015 commit 0c0000b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelog.d/20231126_114050_shadinaif_atlas_pull.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Feature] Pull translations via `atlas` during Docker build. (by @shadinaif)
1 change: 1 addition & 0 deletions tutorcredentials/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@
"TOS_URL": "{{ LMS_HOST }}/tos",
"REPOSITORY": "https://github.com/openedx/credentials.git",
"REPOSITORY_VERSION": "{{ OPENEDX_COMMON_VERSION }}",
"ATLAS_PULL": False,
},
"unique": {
"MYSQL_PASSWORD": "{{ 8|random_string }}",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,12 @@ RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,
{% for extra_requirement in CREDENTIALS_EXTRA_PIP_REQUIREMENTS %}RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip,sharing=shared {% endif %}pip install '{{ extra_requirement }}'
{% endfor %}

{% if CREDENTIALS_ATLAS_PULL %}
# Pull translations. Support the OEP-58 proposal behind a feature flag until it's fully implemented.
RUN atlas pull {{ patch("atlas-extra-args") }} translations/credentials/credentials/conf/locale:credentials/conf/locale
RUN python manage.py compilemessages
{% endif %}

###### Install nodejs with nodeenv in /openedx/nodeenv
FROM python as nodejs-requirements
ENV PATH /openedx/nodeenv/bin:/openedx/venv/bin:${PATH}
Expand Down

0 comments on commit 0c0000b

Please sign in to comment.