From 938a10b5c353b8d518ea0cef0937eec7d87f7dcc Mon Sep 17 00:00:00 2001 From: Blair Vanderlugt Date: Tue, 24 Aug 2021 10:26:09 -0700 Subject: [PATCH] contract-migration ci parity --- apps/contract-migration/docker/Dockerfile_ci | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/apps/contract-migration/docker/Dockerfile_ci b/apps/contract-migration/docker/Dockerfile_ci index 4f384a87..53ba732c 100644 --- a/apps/contract-migration/docker/Dockerfile_ci +++ b/apps/contract-migration/docker/Dockerfile_ci @@ -26,6 +26,7 @@ RUN echo Install confini schema files && \ cp -v *.ini $CONFINI_DIR COPY requirements.txt . +COPY override_requirements.txt . ARG pip_index_url=https://pypi.org/simple ARG EXTRA_INDEX_URL="https://pip.grassrootseconomics.net:8433" @@ -37,5 +38,12 @@ RUN pip install --index-url https://pypi.org/simple \ --extra-index-url $GITLAB_PYTHON_REGISTRY --extra-index-url $EXTRA_INDEX_URL \ -r requirements.txt +RUN --mount=type=cache,mode=0755,target=/root/.cache/pip \ + pip install --index-url https://pypi.org/simple \ + --force-reinstall \ + --trusted-host $pip_trusted_host \ + --extra-index-url $GITLAB_PYTHON_REGISTRY --extra-index-url $EXTRA_INDEX_URL $EXTRA_PIP_ARGS \ + -r override_requirements.txt + COPY . . RUN chmod +x *.sh