feat: add atlas pull
This commit is contained in:
parent
ab0add0848
commit
8d1f30080e
1
changelog.d/20240114_095941_i_atlas.md
Normal file
1
changelog.d/20240114_095941_i_atlas.md
Normal file
@ -0,0 +1 @@
|
||||
- [Feature] Add `atlas pull` at build-time. (by @omarithawi)
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user