UNCLASSIFIED

Commit de193570 authored by Matt Vasquez's avatar Matt Vasquez
Browse files

correct base image in hardening manfest / revert

parent 103f90e1
Pipeline #254527 failed with stages
in 26 seconds
...@@ -7,15 +7,13 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG} ...@@ -7,15 +7,13 @@ FROM ${BASE_REGISTRY}/${BASE_IMAGE}:${BASE_TAG}
USER root USER root
ENV RSTUDIO_VERSION=1.4.1106 ENV RSTUDIO_VERSION=1.4.1106
ENV USER=rstudio
COPY rstudio-server-rhel-${RSTUDIO_VERSION}-x86_64.rpm /tmp COPY rstudio-server-rhel-${RSTUDIO_VERSION}-x86_64.rpm /tmp
RUN groupadd -g 1000 $USER && \ RUN dnf upgrade -y && \
useradd -r -u 1000 -m -g $USER $USER && \
dnf upgrade -y && \
dnf install -y --nogpgcheck glibc-langpack-en initscripts procps-ng /tmp/rstudio-server-rhel-${RSTUDIO_VERSION}-x86_64.rpm \ dnf install -y --nogpgcheck glibc-langpack-en initscripts procps-ng /tmp/rstudio-server-rhel-${RSTUDIO_VERSION}-x86_64.rpm \
binutils curl glibc-devel glibc-headers libcurl-devel libX11 libX11-common kernel-headers && \ binutils curl glibc-devel glibc-headers libcurl-devel libX11 libX11-common kernel-headers && \
rm /var/lib/rstudio-server/rstudio.sqlite && \
mkdir -p /local/libs && \ mkdir -p /local/libs && \
chmod -R g=u /var/lib/rstudio-server && \ chmod -R g=u /var/lib/rstudio-server && \
chmod -R g=u /etc/rstudio && \ chmod -R g=u /etc/rstudio && \
...@@ -27,9 +25,9 @@ RUN groupadd -g 1000 $USER && \ ...@@ -27,9 +25,9 @@ RUN groupadd -g 1000 $USER && \
COPY *.tar.gz /local/libs COPY *.tar.gz /local/libs
COPY rpackages /tmp/rpackages COPY rpackages /tmp/rpackages
RUN /usr/local/bin/R -e "library(tools); write_PACKAGES('/local/libs')" && \ RUN R -e "library(tools); write_PACKAGES('/local/libs')" && \
cat /tmp/rpackages | awk '{printf "\x27"$1"\x27,"}' | sed 's/.$//' | xargs -0 -I {} /usr/local/bin/R -e "install.packages(c({}), contriburl='file:///local/libs')" && \ cat /tmp/rpackages | awk '{printf "\x27"$1"\x27,"}' | sed 's/.$//' | xargs -0 -I {} R -e "install.packages(c({}), contriburl='file:///local/libs')" && \
# rpm -e --nodeps binutils curl glibc-devel glibc-headers libcurl-devel libX11 libX11-common kernel-headers && \ rpm -e --nodeps binutils curl glibc-devel glibc-headers libcurl-devel libX11 libX11-common kernel-headers && \
echo "auth-none=1" >> /etc/rstudio/disable_auth_rserver.conf && \ echo "auth-none=1" >> /etc/rstudio/disable_auth_rserver.conf && \
echo "server-daemonize=0" >> /etc/rstudio/rserver.conf && \ echo "server-daemonize=0" >> /etc/rstudio/rserver.conf && \
echo "[*]" > /etc/rstudio/logging.conf && \ echo "[*]" > /etc/rstudio/logging.conf && \
...@@ -44,8 +42,8 @@ ENV LC_ALL=en_US.UTF-8 \ ...@@ -44,8 +42,8 @@ ENV LC_ALL=en_US.UTF-8 \
USER ${USER} USER ${USER}
HEALTHCHECK --start-period=60s CMD /usr/local/bin/rstudio-server status | grep -e "running" HEALTHCHECK --start-period=60s CMD rstudio-server status | grep -e "running"
EXPOSE 8787 EXPOSE 8787
ENTRYPOINT ["/usr/local/bin/rstudio-server", "start"] ENTRYPOINT ["rstudio-server", "start"]
\ No newline at end of file \ No newline at end of file
...@@ -10,8 +10,8 @@ tags: ...@@ -10,8 +10,8 @@ tags:
- "latest" - "latest"
# Build args passed to Dockerfile ARGs # Build args passed to Dockerfile ARGs
args: args:
BASE_IMAGE: "redhat/ubi/ubi8" BASE_IMAGE: "ironbank/opensource/r/r-base"
BASE_TAG: "8.3" BASE_TAG: "3.0.14"
# Docker image labels # Docker image labels
labels: labels:
org.opencontainers.image.title: "rstudio" org.opencontainers.image.title: "rstudio"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment