Skip to content

Commit

Permalink
TruffleRuby: install TruffleRuby, a couple of dependencies and patch …
Browse files Browse the repository at this point in the history
…missing security related SO libraries, in the docker image
  • Loading branch information
neomatrix369 committed Oct 11, 2021
1 parent ded0556 commit 714e155
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-images/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ RUN echo; echo " --- Download & install 'espresso' using gu"; gu install espress
RUN echo; echo " --- Download & install 'nodejs' using gu"; gu install nodejs; echo
RUN echo; echo " --- Download & install 'python' using gu"; gu install python; echo
RUN echo; echo " --- Download & install 'R' using gu"; gu install R; echo

RUN echo; echo " --- Download & install 'Ruby' using gu"; gu install ruby; echo

# Install Java 8
COPY --from=java:8u111-jdk /usr/lib/jvm /usr/lib/jvm
Expand Down
7 changes: 6 additions & 1 deletion docker-images/Dockerfile-gui
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ RUN apt-get update \
&& apt-get install -yq --no-install-recommends \
x11vnc xvfb xterm \
xfonts-75dpi xfonts-100dpi xfonts-base \
libfontconfig1 libxrender1 libxtst6 \
libfontconfig1 libxrender1 libxtst6 openssl libssl-dev \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /tmp/*

Expand All @@ -19,6 +19,11 @@ RUN echo ""; echo "Contents of ~/.xinitrc"; echo ""; cat ~/.xinitrc; echo "";
RUN echo "xterm*font: *-Monospace-*-*-*-18-*" > ~/.Xresources
RUN echo ""; echo "Contents of ~/.Xresources"; echo ""; cat ~/.Xresources; echo "";

# Necessary for TruffleRuby/ruby gem installation process
# The fixes missing SO library errors we get for libssl.so.nn and libcrypto.so.nn, alternatively you can run https://github.com/oracle/truffleruby/blob/master/lib/truffle/post_install_hook.sh
RUN ln -s /usr/lib/x86_64-linux-gnu/libssl.so.1.0.2 /usr/lib/x86_64-linux-gnu/libssl.so.10
RUN ln -s /usr/lib/x86_64-linux-gnu/libcrypto.so.1.0.2 /usr/lib/x86_64-linux-gnu/libcrypto.so.10

LABEL maintainer="GraalVM team"
LABEL example_git_repo="https://github.com/graalvm/graalvm-demos"
LABEL graalvm_version=${FULL_GRAALVM_VERSION}
Expand Down

0 comments on commit 714e155

Please sign in to comment.