|
1 | | -# syntax=docker/dockerfile:1.15.1@sha256:9857836c9ee4268391bb5b09f9f157f3c91bb15821bb77969642813b0d00518d |
| 1 | +# syntax=docker/dockerfile:1.16.0@sha256:e2dd261f92e4b763d789984f6eab84be66ab4f5f08052316d8eb8f173593acf7 |
2 | 2 | # NOTE: The syntax directive needs to be the first line in a Dockerfile |
3 | 3 | # Find the latest versions here: https://hub.docker.com/r/docker/dockerfile/tags |
4 | 4 | # And the changelogs: https://docs.docker.com/build/buildkit/dockerfile-release-notes/ or https://github.com/moby/buildkit/releases |
@@ -27,6 +27,13 @@ ARG RELEASE="1" |
27 | 27 | ARG STACKABLE_USER_GID="574654813" |
28 | 28 | ARG STACKABLE_USER_UID="782252253" |
29 | 29 |
|
| 30 | +# Sets the default shell to Bash with strict error handling and robust pipeline processing. |
| 31 | +# "-e": Exits immediately if a command exits with a non-zero status |
| 32 | +# "-u": Treats unset variables as an error, preventing unexpected behavior from undefined variables. |
| 33 | +# "-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. |
| 34 | +# "-c": Allows the execution of commands passed as a string |
| 35 | +SHELL ["/bin/bash", "-euo", "pipefail", "-c"] |
| 36 | + |
30 | 37 | # These labels have mostly been superceded by the OpenContainer spec annotations below but it doesn't hurt to include them |
31 | 38 | # http://label-schema.org/rc1/ |
32 | 39 | LABEL name="Stackable Operator for {[ operator.pretty_string }]" |
@@ -75,6 +82,8 @@ assumeyes=True |
75 | 82 | tsflags=nodocs |
76 | 83 | EOF |
77 | 84 |
|
| 85 | +# It complains about echo flags not being available in POSIX sh but we set the shell to bash |
| 86 | +# hadolint ignore=SC3037 |
78 | 87 | RUN <<EOF |
79 | 88 | # Update image and install kerberos client libraries as well as some other utilities |
80 | 89 | microdnf update |
|
0 commit comments