From 02517ba3de915cd700ed72e04edb763570d577d8 Mon Sep 17 00:00:00 2001 From: Muhammad Soban Javed Date: Mon, 25 Nov 2024 17:24:41 +0300 Subject: [PATCH] fix: move devstack.py curl to apt place --- dockerfiles/edx-analytics-data-api.Dockerfile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dockerfiles/edx-analytics-data-api.Dockerfile b/dockerfiles/edx-analytics-data-api.Dockerfile index 47ce0ae..c48d155 100644 --- a/dockerfiles/edx-analytics-data-api.Dockerfile +++ b/dockerfiles/edx-analytics-data-api.Dockerfile @@ -87,10 +87,6 @@ CMD ["gunicorn" , "-b", "0.0.0.0:8100", "--pythonpath", "/edx/app/analytics_api/ FROM base AS dev -RUN curl -L -o ${ANALYTICS_API_CODE_DIR}/analyticsdataserver/settings/devstack.py https://raw.githubusercontent.com/edx/devstack/master/py_configuration_files/analytics_data_api.py - -ENV DJANGO_SETTINGS_MODULE "analyticsdataserver.settings.devstack" - RUN curl -L -o requirements/dev.txt https://raw.githubusercontent.com/edx/edx-analytics-data-api/master/requirements/dev.txt RUN pip install -r ${ANALYTICS_API_CODE_DIR}/requirements/dev.txt @@ -100,6 +96,10 @@ RUN pip install -r ${ANALYTICS_API_CODE_DIR}/requirements/dev.txt # every time any bit of code is changed. RUN curl -L https://github.com/edx/edx-analytics-data-api/archive/refs/heads/master.tar.gz | tar -xz --strip-components=1 +RUN curl -L -o ${ANALYTICS_API_CODE_DIR}/analyticsdataserver/settings/devstack.py https://raw.githubusercontent.com/edx/devstack/master/py_configuration_files/analytics_data_api.py + +ENV DJANGO_SETTINGS_MODULE "analyticsdataserver.settings.devstack" + # Devstack related step for backwards compatibility RUN touch /edx/app/${ANALYTICS_API_SERVICE_NAME}/${ANALYTICS_API_SERVICE_NAME}_env