feat: add atlas pull

This commit is contained in:
Omar Al-Ithawi 2023-12-15 19:40:16 +03:00 committed by Muhammad Faraz Maqsood
parent ab0add0848
commit 8d1f30080e
2 changed files with 5 additions and 1 deletions

View File

@ -0,0 +1 @@
- [Feature] Add `atlas pull` at build-time. (by @omarithawi)

View File

@ -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