Skip to content

Commit

Permalink
integration
Browse files Browse the repository at this point in the history
  • Loading branch information
chaen committed Jun 7, 2024
1 parent c8edb69 commit 3308d5d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/extensions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ 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,gubbins*.whl
EXTRA_PACKAGES_TO_INSTALL=git+https://github.com/DIRACGrid/DIRAC.git@integration,/bindmount/gubbins*.whl
- name: Upload artifact
uses: actions/upload-artifact@v4
Expand Down
9 changes: 9 additions & 0 deletions extensions/containers/services/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,17 @@ ENV DIRACX_EXTENSIONS "gubbins,diracx"

ARG EXTRA_PACKAGES_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 -ec "IFS=', ' read -r -a extra_pkg_array <<< "${EXTRA_PACKAGES_TO_INSTALL}" && echo ${extra_pkg_array} && pip install --no-deps ${EXTRA_PACKAGES_TO_INSTALL[@]} && echo 'Running pip check' && pip check"

# # In many clusters the container is ran as a random uid for security reasons.
# # If we mark the conda directory as group 0 and give it group write permissions
# # then we're still able to manage the environment from inside the container.
Expand Down

0 comments on commit 3308d5d

Please sign in to comment.