Skip to content
Snippets Groups Projects
Commit 6b758aba authored by Sylvester Joosten's avatar Sylvester Joosten
Browse files

Merge branch 'staging-v2.0.0' into develop

parents 3e8c4253 b2136d4f
No related branches found
No related tags found
1 merge request!3v2.0.1
...@@ -30,7 +30,6 @@ eic_builder_singularity: ...@@ -30,7 +30,6 @@ eic_builder_singularity:
- sodium dind - sodium dind
only: only:
- tags - tags
- develop
when: manual when: manual
script: script:
- cp containers/builder/eic_builder.def . - cp containers/builder/eic_builder.def .
...@@ -50,7 +49,6 @@ eic_singularity: ...@@ -50,7 +49,6 @@ eic_singularity:
- sodium dind - sodium dind
only: only:
- tags - tags
- develop
script: script:
- cp containers/release/eic.def . - cp containers/release/eic.def .
- /bin/bash .gitlabci/setup.sh - /bin/bash .gitlabci/setup.sh
......
...@@ -49,6 +49,11 @@ RUN find -L /opt/view/* -type f -exec readlink -f '{}' \; | \ ...@@ -49,6 +49,11 @@ RUN find -L /opt/view/* -type f -exec readlink -f '{}' \; | \
# Modifications to the environment that are necessary to run # Modifications to the environment that are necessary to run
RUN cd /opt/spack-environment && \ RUN cd /opt/spack-environment && \
spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh spack env activate --sh -d . >> /etc/profile.d/z10_spack_environment.sh && \
echo "export BINARY_TAG=x86_64-linux-gcc9-opt" >> /etc/profile.d/z10_spack_environment.sh
ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l"]
## make sure we have the entrypoints setup correctly
ENTRYPOINT []
CMD ["bash", "--rcfile", "/etc/profile", "-l"]
USER 0
WORKDIR /
...@@ -24,6 +24,11 @@ COPY --from=builder /opt/spack-environment /opt/spack-environment ...@@ -24,6 +24,11 @@ COPY --from=builder /opt/spack-environment /opt/spack-environment
COPY --from=builder /opt/software /opt/software COPY --from=builder /opt/software /opt/software
COPY --from=builder /opt/view /opt/view COPY --from=builder /opt/view /opt/view
COPY --from=builder /etc/profile.d/z10_spack_environment.sh /etc/profile.d/z10_spack_environment.sh COPY --from=builder /etc/profile.d/z10_spack_environment.sh /etc/profile.d/z10_spack_environment.sh
## Setup global bashrc, useful for singularity
COPY --from=builder /root/.bashrc /etc/bash.bashrc COPY --from=builder /root/.bashrc /etc/bash.bashrc
ENTRYPOINT ["/bin/bash", "--rcfile", "/etc/profile", "-l"] ## make sure we have the entrypoints setup correctly
ENTRYPOINT []
CMD ["bash", "--rcfile", "/etc/profile", "-l"]
USER 0
WORKDIR /
...@@ -92,14 +92,14 @@ if __name__ == "__main__": ...@@ -92,14 +92,14 @@ if __name__ == "__main__":
## Create our install prefix if needed and ensure it is writable ## Create our install prefix if needed and ensure it is writable
args.prefix = os.path.abspath(args.prefix) args.prefix = os.path.abspath(args.prefix)
if not args.module_path: if not args.module_path:
args.module_path = '{}/etc/modulefiles'.format(args.prefix) args.module_path = os.path.abspath('{}/../../etc/modulefiles'.format(args.prefix))
print('Install prefix:', args.prefix) print('Install prefix:', args.prefix)
print('Creating install prefix if needed...') print('Creating install prefix if needed...')
bindir = '{}/bin'.format(args.prefix) bindir = '{}/bin'.format(args.prefix)
libdir = '{}/lib'.format(args.prefix) libdir = '{}/lib'.format(args.prefix)
libexecdir = '{}/libexec'.format(args.prefix) libexecdir = '{}/libexec'.format(args.prefix)
root_prefix = os.path.abspath('{}/..'.format(args.prefix)) root_prefix = os.path.abspath('{}/..'.format(args.prefix))
moduledir = '{}/etc/modulefiles/{}'.format(root_prefix, PROJECT_NAME) moduledir = '{}/{}'.format(args.module_path, PROJECT_NAME)
for dir in [bindir, libdir, libexecdir, moduledir]: for dir in [bindir, libdir, libexecdir, moduledir]:
print(' -', dir) print(' -', dir)
smart_mkdir(dir) smart_mkdir(dir)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment