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
RHAIENG-287: fix(Dockerfiles): use explicit /bin/bash RUN blocks to avoid Hadolint SC3041 warning (#2563)
```
./runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu:53 SC3041 warning: In POSIX sh, set flag -E is undefined.
./runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu:68 SC3041 warning: In POSIX sh, set flag -E is undefined.
./runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu:89 SC3041 warning: In POSIX sh, set flag -E is undefined.
```
# Fix hadolint SC3041 in datascience runtime Dockerfile
## Approach
- Replace POSIX heredoc invocations with explicit bash heredocs to make `set -E` valid, following patterns already used in `jupyter/datascience/ubi9-python-3.12/Dockerfile.cpu`.
- Use a quoted delimiter to prevent Docker-time expansion while still allowing bash to expand variables at runtime.
## Targeted edits
- In `runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu`, change these RUN blocks:
```53:66:/Users/jdanek/IdeaProjects/notebooks/runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu
RUN <<EOF
set -Eeuxo pipefail
# ...
EOF
```
to:
```53:66:/Users/jdanek/IdeaProjects/notebooks/runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu
RUN /bin/bash <<'EOF'
set -Eeuxo pipefail
# ...
EOF
```
Similarly update the other two blocks:
```67:86:/Users/jdanek/IdeaProjects/notebooks/runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu
RUN <<EOF
set -Eeuxo pipefail
# ...
EOF
```
→
```67:86:/Users/jdanek/IdeaProjects/notebooks/runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu
RUN /bin/bash <<'EOF'
set -Eeuxo pipefail
# ...
EOF
```
```88:96:/Users/jdanek/IdeaProjects/notebooks/runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu
RUN <<EOF
set -Eeuxo pipefail
# ...
EOF
```
→
```88:96:/Users/jdanek/IdeaProjects/notebooks/runtimes/datascience/ubi9-python-3.12/Dockerfile.cpu
RUN /bin/bash <<'EOF'
set -Eeuxo pipefail
# ...
EOF
```
## Notes
- This mirrors existing usage in `jupyter/datascience/ubi9-python-3.12/Dockerfile.cpu` (e.g., lines with `RUN /bin/bash <<'EOF'`).
- No changes to the script bodies; only the heredoc invocations are updated.
0 commit comments