You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: stackable-devel/Dockerfile
+24-6Lines changed: 24 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -16,6 +16,24 @@ ARG STACKABLE_USER_UID
16
16
ARG STACKABLE_USER_GID
17
17
ARG STACKABLE_USER_NAME
18
18
19
+
# Sets the default shell to Bash with strict error handling and robust pipeline processing.
20
+
# "-e": Exits immediately if a command exits with a non-zero status
21
+
# "-u": Treats unset variables as an error, preventing unexpected behavior from undefined variables.
22
+
# "-o pipefail": Causes a pipeline to return the exit status of the last command in the pipe that failed, ensuring errors in any part of a pipeline are not ignored.
23
+
# "-c": Allows the execution of commands passed as a string
24
+
# This is automatically inherited in all other Dockerfiles that use this unless it is overwritten
25
+
SHELL ["/bin/bash", "-euo", "pipefail", "-c"]
26
+
27
+
# We configure microdnf to not install weak dependencies in this file
28
+
# Not doing this caused the content of images to become unpredictable because
29
+
# based on which packages get updated by `microdnf update` new weak dependencies
30
+
# might be installed that were not present earlier (the ubi base image doesn't
31
+
# seem to install weak dependencies)
32
+
# This also affects the packages that are installed in our Dockerfiles (java as prime
0 commit comments