File tree Expand file tree Collapse file tree 3 files changed +19
-2
lines changed
rstudio/rhel9-python-3.12 Expand file tree Collapse file tree 3 files changed +19
-2
lines changed Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ USER root
2424COPY --from=ubi-repos /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
2525COPY --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
153160dnf 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
154163dnf clean all
155164rm -rf /var/cache/yum
156165(cd /tmp/utils && ./cve_remediation.sh)
Original file line number Diff line number Diff line change @@ -24,6 +24,13 @@ USER root
2424COPY --from=ubi-repos /etc/yum.repos.d/ubi.repo /etc/yum.repos.d/ubi.repo
2525COPY --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
167174dnf 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
168177dnf clean all
169178rm -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
187196ENV 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 \
You can’t perform that action at this time.
0 commit comments