File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
jupyter/datascience/ubi9-python-3.12
runtimes/datascience/ubi9-python-3.12 Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ RUN arch="${TARGETARCH:-$(uname -m)}" && \
23
23
arch=$(echo "$arch" | cut -d- -f1) && \
24
24
if [ "$arch" = "s390x" ]; then \
25
25
echo "Skipping mongocli build for ${arch}, creating dummy binary"; \
26
- mkdir -p /tmp && printf '#!/bin/sh\necho "mongocli not supported on s390x"' > /tmp/mongocli && \
26
+ mkdir -p /tmp && printf '#!/bin/sh\necho "mongocli not supported on s390x"\n ' > /tmp/mongocli && \
27
27
chmod +x /tmp/mongocli; \
28
28
else \
29
29
echo "Building mongocli for ${arch}"; \
@@ -69,7 +69,8 @@ RUN --mount=type=cache,target=/var/cache/dnf \
69
69
dnf install -y $PACKAGES && \
70
70
dnf clean all && rm -rf /var/cache/yum
71
71
72
- RUN <<EOF
72
+ RUN /bin/bash <<'EOF'
73
+ set -Eeuxo pipefail
73
74
if [ "$TARGETARCH" = "s390x" ]; then
74
75
# Install Rust and set up environment
75
76
mkdir -p /opt/.cargo
89
90
EOF
90
91
91
92
# Set python alternatives only for s390x (not needed for other arches)
92
- RUN <<EOF
93
+ RUN /bin/bash <<'EOF'
94
+ set -Eeuxo pipefail
93
95
if [ "$TARGETARCH" = "s390x" ]; then
94
96
alternatives --install /usr/bin/python python /usr/bin/python3.12 1
95
97
alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
Original file line number Diff line number Diff line change @@ -51,6 +51,7 @@ RUN --mount=type=cache,target=/var/cache/dnf \
51
51
fi
52
52
53
53
RUN <<EOF
54
+ set -Eeuxo pipefail
54
55
if [ "$TARGETARCH" = "ppc64le" ]; then cat > /etc/profile.d/ppc64le.sh <<'PROFILE_EOF'
55
56
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
56
57
export LD_LIBRARY_PATH=/usr/local/lib64:/usr/local/lib:/usr/lib64:/usr/lib:$LD_LIBRARY_PATH
65
66
66
67
# For s390x only, set ENV vars and install Rust
67
68
RUN <<EOF
69
+ set -Eeuxo pipefail
68
70
if [ "$TARGETARCH" = "s390x" ]; then
69
71
# Install Rust and set up environment
70
72
mkdir -p /opt/.cargo
85
87
86
88
# Set python alternatives only for s390x (not needed for other arches)
87
89
RUN <<EOF
90
+ set -Eeuxo pipefail
88
91
if [ "$TARGETARCH" = "s390x" ]; then
89
92
alternatives --install /usr/bin/python python /usr/bin/python3.12 1
90
93
alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
You can’t perform that action at this time.
0 commit comments