Skip to content
Snippets Groups Projects

Fix environment setup for CI usage

Merged Sylvester Joosten requested to merge fix_env into master
Files
4
@@ -189,6 +189,15 @@ RUN find -L /usr/local/* \
@@ -189,6 +189,15 @@ RUN find -L /usr/local/* \
| grep 'x-executable\|x-archive\|x-sharedlib' \
| grep 'x-executable\|x-archive\|x-sharedlib' \
| awk -F: '{print $1}' | xargs strip -s
| awk -F: '{print $1}' | xargs strip -s
 
## Bugfix to address issues loading the Qt5 libraries on Linux kernels prior to 3.15
 
## See
 
#https://askubuntu.com/questions/1034313/ubuntu-18-4-libqt5core-so-5-cannot-open-shared-object-file-no-such-file-or-dir
 
## and links therin for more info
 
RUN strip --remove-section=.note.ABI-tag /usr/local/lib/libQt5Core.so
 
 
COPY eic-shell /usr/local/bin/eic-shell
 
COPY entrypoint.sh /usr/local/sbin/entrypoint.sh
 
## ========================================================================================
## ========================================================================================
## STAGE 3
## STAGE 3
## Lean target image
## Lean target image
@@ -211,16 +220,9 @@ RUN --mount=from=staging,target=/staging \
@@ -211,16 +220,9 @@ RUN --mount=from=staging,target=/staging \
&& cat /etc/profile.d/z11_jug_env.sh >> /etc/eic-env.sh \
&& cat /etc/profile.d/z11_jug_env.sh >> /etc/eic-env.sh \
&& cp /etc/eic-env.sh /etc/profile.d/z10_eic-env.sh
&& cp /etc/eic-env.sh /etc/profile.d/z10_eic-env.sh
## Bugfix to address issues loading the Qt5 libraries on Linux kernels prior to 3.15
## See
#https://askubuntu.com/questions/1034313/ubuntu-18-4-libqt5core-so-5-cannot-open-shared-object-file-no-such-file-or-dir
## and links therin for more info
RUN strip --remove-section=.note.ABI-tag /usr/local/lib/libQt5Core.so
COPY eic-shell /usr/local/bin/eic-shell
## make sure we have the entrypoints setup correctly
## make sure we have the entrypoints setup correctly
ENTRYPOINT []
ENTRYPOINT ["/usr/local/sbin/entrypoint.sh"]
CMD ["bash", "--rcfile", "/etc/profile", "-l"]
CMD ["bash", "--rcfile", "/etc/profile", "-l"]
USER 0
USER 0
WORKDIR /
WORKDIR /
Loading