File tree Expand file tree Collapse file tree 8 files changed +542
-4
lines changed Expand file tree Collapse file tree 8 files changed +542
-4
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,7 @@ RUN chmod -R a+w ${LIBLOC} && \
78
78
chmod -R a+w ${R_LIBS_USER}
79
79
80
80
WORKDIR /tmp/
81
+ COPY /rstudio/utils /tmp/utils
81
82
82
83
# Install RStudio
83
84
ARG RSTUDIO_RPM=rstudio-server-rhel-2024.12.1-563-x86_64.rpm
@@ -92,7 +93,8 @@ RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel8/x86_64/$
92
93
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible
93
94
dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed && \
94
95
dnf clean all && \
95
- rm -rf /var/cache/yum
96
+ rm -rf /var/cache/yum && \
97
+ (cd /tmp/utils && ./cve_remediation.sh)
96
98
97
99
COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf
98
100
Original file line number Diff line number Diff line change @@ -80,6 +80,7 @@ RUN chmod -R a+w ${LIBLOC} && \
80
80
chmod -R a+w ${R_LIBS_USER}
81
81
82
82
WORKDIR /tmp/
83
+ COPY /rstudio/utils /tmp/utils
83
84
84
85
# Install RStudio
85
86
ARG RSTUDIO_RPM=rstudio-server-rhel-2024.12.1-563-x86_64.rpm
@@ -94,7 +95,8 @@ RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel8/x86_64/$
94
95
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible
95
96
dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed && \
96
97
dnf clean all && \
97
- rm -rf /var/cache/yum
98
+ rm -rf /var/cache/yum && \
99
+ (cd /tmp/utils && ./cve_remediation.sh)
98
100
99
101
COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf
100
102
Original file line number Diff line number Diff line change @@ -93,6 +93,7 @@ RUN chmod -R a+w ${LIBLOC} && \
93
93
chmod -R a+w ${R_LIBS_USER}
94
94
95
95
WORKDIR /tmp/
96
+ COPY /rstudio/utils /tmp/utils
96
97
97
98
# Install RStudio
98
99
ARG RSTUDIO_RPM=rstudio-server-rhel-2024.12.1-563-x86_64.rpm
@@ -107,7 +108,8 @@ RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/$
107
108
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible \
108
109
dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed && \
109
110
dnf clean all && \
110
- rm -rf /var/cache/yum
111
+ rm -rf /var/cache/yum && \
112
+ (cd /tmp/utils && ./cve_remediation.sh)
111
113
112
114
COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf
113
115
Original file line number Diff line number Diff line change @@ -223,6 +223,7 @@ RUN chmod -R a+w ${LIBLOC} && \
223
223
chmod -R a+w ${R_LIBS_USER}
224
224
225
225
WORKDIR /tmp/
226
+ COPY /rstudio/utils /tmp/utils
226
227
227
228
# Install RStudio
228
229
ARG RSTUDIO_RPM=rstudio-server-rhel-2024.12.1-563-x86_64.rpm
@@ -237,7 +238,8 @@ RUN wget --progress=dot:giga https://download2.rstudio.org/server/rhel9/x86_64/$
237
238
# install necessary texlive-framed package to make Knit R markup to PDF rendering possible \
238
239
dnf install -y libsodium-devel.x86_64 libgit2-devel.x86_64 libcurl-devel harfbuzz-devel.x86_64 fribidi-devel.x86_64 cmake "flexiblas-*" texlive-framed && \
239
240
dnf clean all && \
240
- rm -rf /var/cache/yum
241
+ rm -rf /var/cache/yum && \
242
+ (cd /tmp/utils && ./cve_remediation.sh)
241
243
242
244
COPY ${RSTUDIO_SOURCE_CODE}/rsession.conf /etc/rstudio/rsession.conf
243
245
Original file line number Diff line number Diff line change
1
+ ## package.json
2
+
3
+ Used to manage the esbuild version that we inject into installed RStudio.
4
+
5
+ ``` shell
6
+ # install dependencies from a lock file
7
+ npm ci
8
+
9
+ # update the lock file
10
+ npm install --package-lock-only
11
+ ```
Original file line number Diff line number Diff line change
1
+ #! /usr/bin/env bash
2
+ set -Eeuxo pipefail
3
+
4
+ # CVE remediation
5
+ # remediate CVEs introduced through older embedded version of esbuild
6
+ rm " /usr/lib/rstudio-server/bin/quarto/bin/tools/$( uname -m) /esbuild"
7
+ npm ci
8
+ mv node_modules/esbuild/bin/esbuild " /usr/lib/rstudio-server/bin/quarto/bin/tools/$( uname -m) /"
9
+ # clean up
10
+ rm -r node_modules package.json package-lock.json
11
+ npm cache clean --force
You can’t perform that action at this time.
0 commit comments