Skip to content

Commit 7498c44

Browse files
trevor-vaughanop-ct
authored andcommitted
Revert addition of build container USER
* No longer set the default user in the build containers to `build_user` since this caused dependent processes to break. Closes #824
1 parent 9ec1a38 commit 7498c44

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

build/Dockerfiles/SIMP_EL7_Build.dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,5 @@ RUN ./prime_ruby.sh
5050
RUN ./package_cleanup.sh
5151
RUN rm -rf /root/build_scripts
5252

53-
ENV HOME=/home/build_user
54-
WORKDIR $HOME
55-
USER build_user
56-
5753
# Drop into a shell for building
58-
CMD /bin/bash -l
54+
CMD /bin/bash -c "su -l build_user"

build/Dockerfiles/SIMP_EL8_Build.dockerfile

+1-5
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,5 @@ RUN ./prime_ruby.sh
2828
RUN ./package_cleanup.sh
2929
RUN rm -rf /root/build_scripts
3030

31-
ENV HOME=/home/build_user
32-
WORKDIR $HOME
33-
USER build_user
34-
3531
# Drop into a shell for building
36-
CMD /bin/bash -l
32+
CMD /bin/bash -c "su -l build_user"

0 commit comments

Comments
 (0)