-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (21 loc) · 1.22 KB
/
Dockerfile
File metadata and controls
26 lines (21 loc) · 1.22 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
# WARNING: generated file, use update.py for updates
FROM fedora:42
LABEL org.opencontainers.image.authors="horky@d3s.mff.cuni.cz"
LABEL maintainer="horky@d3s.mff.cuni.cz"
LABEL name=renaissance-buildenv
LABEL version=v19-openj9-openjdk17
LABEL vendor=renaissance.dev
LABEL org.opencontainers.image.description "Build environment for Renaissance benchmarks (variant openj9-openjdk17)"
RUN dnf -y --setopt install_weak_deps=false --repo fedora --repo updates install ca-certificates git unzip \
&& dnf clean all && rm -rf /var/log/*
RUN curl -L "https://github.com/ibmruntimes/semeru17-binaries/releases/download/jdk-17.0.15%2B6_openj9-0.51.0/ibm-semeru-open-jdk_x64_linux_17.0.15_6_openj9-0.51.0.tar.gz" | tar -xz -C /opt \
&& alternatives --install /usr/bin/java java /opt/jdk-17.0.15+6/bin/java 10 \
&& for i in /opt/jdk-17.0.15+6/bin/*; do \
ii="$( basename "$i" )"; \
[ "$ii" != "java" ] \
&& alternatives --add-slave java "/opt/jdk-17.0.15+6/bin/java" "/usr/bin/$ii" "$ii" "/opt/jdk-17.0.15+6/bin/$ii"; \
done \
&& mkdir -p /opt/jdk-17.0.15+6/lib/security/ \
&& ln -sf /etc/pki/java/cacerts /opt/jdk-17.0.15+6/lib/security/ \
&& /opt/jdk-17.0.15+6/bin/java -version
CMD ["/bin/bash"]