Skip to content

Commit 09a7235

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents f0983f5 + 6e359a7 commit 09a7235

File tree

3 files changed

+19
-2
lines changed

3 files changed

+19
-2
lines changed

.github/workflows/build-notebooks-pr-aipcc.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,5 +90,5 @@ jobs:
9090
github: "${{ toJSON(github) }}"
9191
platform: "${{ matrix.platform }}"
9292
# rhds/notebooks builds from AIPCC base images that are RHEL-based
93-
subscription: "true"
93+
subscription: ${{ true }}
9494
secrets: inherit

rstudio/rhel9-python-3.12/Dockerfile.cpu

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ USER root
2424
COPY --from=ubi-repos /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
2525
COPY --from=ubi-repos /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
2626

27+
RUN /bin/bash <<'EOF'
28+
set -Eeuxo pipefail
29+
if command -v subscription-manager &> /dev/null; then
30+
subscription-manager identity &>/dev/null && subscription-manager refresh || echo "Not registered, skipping refresh."
31+
fi
32+
EOF
33+
2734
# upgrade first to avoid fixable vulnerabilities begin
2835
# Problem: The operation would result in removing the following protected packages: systemd
2936
# (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
@@ -151,6 +158,8 @@ mkdir -p /usr/share/doc/R
151158
# package installation
152159
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible
153160
dnf install -y libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed
161+
# install npm to run cve_remediation script
162+
dnf install -y npm
154163
dnf clean all
155164
rm -rf /var/cache/yum
156165
(cd /tmp/utils && ./cve_remediation.sh)

rstudio/rhel9-python-3.12/Dockerfile.cuda

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,13 @@ USER root
2424
COPY --from=ubi-repos /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
2525
COPY --from=ubi-repos /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
2626

27+
RUN /bin/bash <<'EOF'
28+
set -Eeuxo pipefail
29+
if command -v subscription-manager &> /dev/null; then
30+
subscription-manager identity &>/dev/null && subscription-manager refresh || echo "Not registered, skipping refresh."
31+
fi
32+
EOF
33+
2734
# upgrade first to avoid fixable vulnerabilities begin
2835
# Problem: The operation would result in removing the following protected packages: systemd
2936
# (try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages)
@@ -165,6 +172,8 @@ mkdir -p /usr/share/doc/R
165172
# package installation
166173
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible
167174
dnf install -y libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed
175+
# install npm to run cve_remediation script
176+
dnf install -y npm
168177
dnf clean all
169178
rm -rf /var/cache/yum
170179
(cd /tmp/utils && ./cve_remediation.sh)
@@ -185,7 +194,6 @@ ENV APP_ROOT=/opt/app-root
185194

186195
# Install NGINX to proxy RStudio and pass probes check
187196
ENV NGINX_VERSION=1.24 \
188-
NGINX_VERSION=1.24 \
189197
NGINX_SHORT_VER=124 \
190198
NGINX_CONFIGURATION_PATH=${APP_ROOT}/etc/nginx.d \
191199
NGINX_CONF_PATH=/etc/nginx/nginx.conf \

0 commit comments

Comments
 (0)