From 1fdce164a3baf024028923f1c41d61a7f03205b2 Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Sun, 6 Aug 2023 17:19:00 +0300 Subject: [PATCH] fixup! feat: simplify args and include atlas --- .../templates/discovery/build/discovery/Dockerfile | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tutordiscovery/templates/discovery/build/discovery/Dockerfile b/tutordiscovery/templates/discovery/build/discovery/Dockerfile index 5c27d98..b4525fb 100644 --- a/tutordiscovery/templates/discovery/build/discovery/Dockerfile +++ b/tutordiscovery/templates/discovery/build/discovery/Dockerfile @@ -42,6 +42,11 @@ RUN pip install nodeenv==1.7.0 RUN nodeenv /openedx/nodeenv --node=16.14.2 --prebuilt ENV PATH /openedx/nodeenv/bin:${PATH} +# Install the Open edX Atlas translation tool +RUN curl -L https://github.com/openedx/openedx-atlas/releases/download/v0.1.1/atlas \ + -o /openedx/venv/bin/atlas && \ + chmod +x /openedx/venv/bin/atlas + # Install python and nodejs requirements # This is identical to "make production-requirements" but it was split in multiple # instructions to benefit from docker image caching @@ -64,11 +69,6 @@ RUN {% if is_buildkit_enabled() %}--mount=type=cache,target=/openedx/.cache/pip, # Update i18n and collect static assets {% if DISCOVERY_ATLAS_PULL %} -# Install the Open edX Atlas translation tool -RUN curl -L https://github.com/openedx/openedx-atlas/releases/v0.1.1/atlas \ - -o /openedx/venv/bin/atlas && \ - chmod +x /openedx/venv/bin/atlas - RUN find course_discovery/conf/locale -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \; \ && cd course_discovery/conf \ && atlas pull {{ DISCOVERY_ATLAS_ARGS }} \