From 5c2cb3154141cc1e7ca8b4c4e921b7520891fe8b Mon Sep 17 00:00:00 2001 From: Christophe Haen Date: Fri, 7 Jun 2024 16:19:19 +0200 Subject: [PATCH] integration --- .github/workflows/extensions.yml | 3 ++- extensions/containers/services/Dockerfile | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/extensions.yml b/.github/workflows/extensions.yml index ba7244c1..5279180e 100644 --- a/.github/workflows/extensions.yml +++ b/.github/workflows/extensions.yml @@ -131,7 +131,8 @@ jobs: tags: gubbins/services:dev outputs: type=docker,dest=/tmp/gubbins_services_image.tar build-args: | - EXTRA_PACKAGES_TO_INSTALL=git+https://github.com/DIRACGrid/DIRAC.git@integration,/bindmount/gubbins*.whl + EXTRA_PACKAGES_TO_INSTALL=git+https://github.com/DIRACGrid/DIRAC.git@integration" + EXTENSION_CUSTOM_SOURCES_TO_INSTALL="/bindmount/gubbins*.whl" - name: Upload artifact uses: actions/upload-artifact@v4 diff --git a/extensions/containers/services/Dockerfile b/extensions/containers/services/Dockerfile index 025c6590..1dfc2e58 100644 --- a/extensions/containers/services/Dockerfile +++ b/extensions/containers/services/Dockerfile @@ -4,13 +4,13 @@ FROM ghcr.io/diracgrid/diracx/services:dev ENV DIRACX_EXTENSIONS "gubbins,diracx" ARG EXTRA_PACKAGES_TO_INSTALL - +ARG EXTENSION_CUSTOM_SOURCES_TO_INSTALL # RUN --mount=type=bind,source=.,target=/bindmount DIRACX_CUSTOM_SOURCE_PREFIXES=/bindmount /entrypoint.sh bash -ec "ls /bindmount/* " # RUN /entrypoint.sh bash -ec "IFS=',' read -r -a extra_pkg_array <<< "${EXTRA_PACKAGES_TO_INSTALL}" && echo ${extra_pkg_array} && echo ${EXTRA_PACKAGES_TO_INSTALL} && echo PROUT " -RUN --mount=type=bind,source=.,target=/bindmount DIRACX_CUSTOM_SOURCE_PREFIXES=/bindmount /entrypoint.sh bash -ec "pip install --no-deps ${EXTRA_PACKAGES_TO_INSTALL} && echo 'Running pip check' && pip check" +RUN --mount=type=bind,source=.,target=/bindmount DIRACX_CUSTOM_SOURCE_PREFIXES=/bindmount /entrypoint.sh bash -exc "pip install --no-deps ${EXTRA_PACKAGES_TO_INSTALL} ${EXTENSION_CUSTOM_SOURCES_TO_INSTALL} && echo 'Running pip check' && pip check"