Skip to content

Commit

Permalink
feat: add atlas pull
Browse files Browse the repository at this point in the history
  • Loading branch information
OmarIthawi authored and Faraz32123 committed Jan 15, 2024
1 parent ab0add0 commit 8d1f300
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 1 addition & 0 deletions changelog.d/20240114_095941_i_atlas.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- [Feature] Add `atlas pull` at build-time. (by @omarithawi)
Original file line number Diff line number Diff line change
Expand Up @@ -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") }}
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8d1f300

Please sign in to comment.