diff --git a/changelog.d/20240114_095941_i_atlas.md b/changelog.d/20240114_095941_i_atlas.md new file mode 100644 index 0000000..a34376c --- /dev/null +++ b/changelog.d/20240114_095941_i_atlas.md @@ -0,0 +1 @@ +- [Feature] Add `atlas pull` at build-time. (by @omarithawi) diff --git a/tutorcredentials/templates/credentials/build/credentials/Dockerfile b/tutorcredentials/templates/credentials/build/credentials/Dockerfile index 34c5a4d..0dc9ca1 100644 --- a/tutorcredentials/templates/credentials/build/credentials/Dockerfile +++ b/tutorcredentials/templates/credentials/build/credentials/Dockerfile @@ -7,7 +7,7 @@ ENV DEBIAN_FRONTEND=noninteractive RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \ --mount=type=cache,target=/var/lib/apt,sharing=locked \ apt update && \ - apt install -y build-essential curl git language-pack-en + apt install -y build-essential curl git language-pack-en gettext ENV LC_ALL en_US.UTF-8 {{ patch("credentials-dockerfile-minimal") }} @@ -125,6 +125,9 @@ ENV PATH /openedx/venv/bin:./node_modules/.bin:/openedx/nodeenv/bin:${PATH} ENV VIRTUAL_ENV /openedx/venv/ WORKDIR /openedx/credentials +RUN atlas pull --repository="{{ ATLAS_REPOSITORY }}" --branch="{{ ATLAS_REVISION }}" {{ ATLAS_OPTIONS }} translations/credentials/credentials/conf/locale:credentials/conf/locale +RUN python manage.py compilemessages + # Setup minimal yml config file, which is required by production settings RUN echo "{}" > /openedx/config.yml ENV CREDENTIALS_CFG /openedx/config.yml