Skip to content
Snippets Groups Projects

Bugfix: more consistent treatment of environment variables throughout container.

Merged Sylvester Joosten requested to merge staging into master
3 files
+ 18
11
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -30,10 +30,6 @@ ENV DOCKERFILE_DISTRO=ubuntu \
@@ -30,10 +30,6 @@ ENV DOCKERFILE_DISTRO=ubuntu \
COPY --from=builder /opt/spack-environment /opt/spack-environment
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
## Setup fresh bashrc, useful for singularity
COPY bashrc /etc/bash.bashrc
COPY bashrc /root/.bashrc
## Symlink /opt/view to /usr/local
## Symlink /opt/view to /usr/local
## Maybe in a future release we should install the view directly to /usr/local
## Maybe in a future release we should install the view directly to /usr/local
@@ -46,7 +42,12 @@ RUN rm -rf /usr/local && ln -s /opt/view /usr/local
@@ -46,7 +42,12 @@ RUN rm -rf /usr/local && ln -s /opt/view /usr/local
## eic-shell and environment scripts. Not strictly needed anymore now we auto-load
## eic-shell and environment scripts. Not strictly needed anymore now we auto-load
## the environment but still provided for backward compatibility (and documentation).
## the environment but still provided for backward compatibility (and documentation).
COPY eic-shell /usr/local/bin/eic-shell
COPY eic-shell /usr/local/bin/eic-shell
COPY --from=builder /etc/profile.d/z10_spack_environment.sh /etc/eic-env.sh
COPY eic-env.sh /etc/eic-env.sh
 
COPY eic-env.sh /etc/profile.d/z10_eic-env.sh
 
 
## Setup fresh bashrc, useful for singularity
 
COPY bashrc /etc/bash.bashrc
 
COPY bashrc /root/.bashrc
## make sure we have the entrypoints setup correctly
## make sure we have the entrypoints setup correctly
ENTRYPOINT []
ENTRYPOINT []
Loading