-
Notifications
You must be signed in to change notification settings - Fork 3
Images update with VeloC #29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: v4
Are you sure you want to change the base?
Changes from all commits
c8b1812
b7a5461
79e5bf8
f701a6e
7098954
25024fd
272a6c6
07d9885
2f2b978
a09ca7b
29f78cb
92d1ef7
95bb78f
87b1ae5
9dd7137
09bdb9c
eb099ae
81c2d28
8c10e2e
7c89b20
1244993
7820ea4
8c3e6fb
52075e2
c4bc37c
d334c00
f4e9410
56194a5
a106b7b
d5eb7b3
79398fe
ae46ecd
b2c9ede
e775403
8198186
59502d0
be4e7a2
9764737
2423d30
447d4f6
c5a08e3
ecb8bf5
5af0649
e14e8a1
cea55b4
3a285a5
fd36dce
d945962
11b1150
7c7dccd
e3bd1bc
12a702e
569613f
fd2179b
a322ea6
6ca461c
530bc37
6c279c1
528a86f
38d6cb4
7e02049
85203db
7d92df9
e05c98f
cc118c5
8f015ad
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -134,3 +134,4 @@ runs: | |
| sudo swapoff /swapfile || true | ||
| sudo rm -f /swapfile || true | ||
| fi | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -70,10 +70,47 @@ RUN set -ex \ | |
| && rm -rf /root/* \ | ||
| && [ -f ~/.profile ] && ( sed -i 's/mesg n/( tty -s \&\& mesg n || true )/g' ~/.profile || true ) | ||
|
|
||
| # stage : veloc download | ||
|
|
||
| FROM main AS velocdl | ||
|
|
||
| # install tools needed by VeloC install script | ||
| RUN set -ex \ | ||
| && apt-get update \ | ||
| && apt-get install -y --no-install-recommends \ | ||
| git \ | ||
| python3-wget \ | ||
| python3-bs4 \ | ||
| && rm -rf /var/lib/apt/lists/* | ||
|
|
||
| WORKDIR /opt/src | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @pdidev/pdi-maintainers Do you want to adopt the convention '/opt/src/' at the source file for third-party software? |
||
|
|
||
| # Clone VeloC repository | ||
| RUN git clone -b 'veloc-1.8' --single-branch --depth 1 \ | ||
| https://github.com/ECP-VeloC/veloc.git veloc | ||
|
|
||
| WORKDIR /opt/src/veloc | ||
|
|
||
| # Run VeloC install script | ||
| RUN mkdir -p /opt/veloc \ | ||
| && ./auto-install.py /opt/veloc | ||
|
|
||
|
|
||
| # stage : complete image | ||
|
|
||
| FROM main AS complete-main | ||
| ARG DISTRO | ||
| ARG DISTRO_VERSION | ||
| ARG MPI | ||
|
|
||
| COPY --from=velocdl /opt/veloc /opt/veloc | ||
|
|
||
| ENV CMAKE_PREFIX_PATH=/opt/veloc:${CMAKE_PREFIX_PATH} | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. What is the value of |
||
| ENV PDI_SYSTEM=${DISTRO}-${DISTRO_VERSION} | ||
| ENV PDI_COMPILER=gcc | ||
| ENV PDI_MPI=${MPI} | ||
| ENV PDI_LIBS=provided | ||
| ENV LD_LIBRARY_PATH="/opt/veloc/lib" | ||
| # only required for openmpi but... | ||
| ENV OMPI_MCA_rmaps_base_oversubscribe=1 | ||
| ENV PRTE_MCA_rmaps_default_mapping_policy=:oversubscribe | ||
|
|
@@ -82,21 +119,19 @@ ENV HOME=/home/ci | |
| USER ci:ci | ||
| WORKDIR ${HOME} | ||
|
|
||
|
|
||
| # stage : pdi download | ||
|
|
||
| FROM alpine/git AS pdidl | ||
|
|
||
| RUN git -C /root clone --recurse-submodules https://github.com/pdidev/pdi.git /root/pdi | ||
|
|
||
| RUN git -C /root clone --recurse-submodules https://github.com/iole-bolognesi/pdi.git /root/pdi | ||
|
|
||
| # stage : test | ||
|
|
||
| FROM main AS test | ||
| FROM complete-main AS test | ||
|
|
||
| COPY --from=pdidl --chown=ci:ci /root/pdi /home/ci/pdi | ||
|
|
||
| RUN export VERBOSE=1 \ | ||
| && bash pdi/bin/build_and_run_all_tests | ||
|
|
||
|
|
||
|
|
||
| FROM main | ||
| FROM complete-main | ||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want to test pdi and its plugins not only veloc plugin.
If veloc plugin doesn't support some env, it is better to exclude these case in the Dockerfile use to generate the image.
using: ARG DISTRO, ARG DISTRO_VERSION and ARG MPI