Skip to content

Commit

Permalink
Change Rocky Linux version to 8.10
Browse files Browse the repository at this point in the history
  • Loading branch information
ZiyamSanthosh committed Jul 31, 2024
1 parent 5c2ba83 commit b2e25de
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 9 deletions.
19 changes: 12 additions & 7 deletions dockerfiles/jdk17/rocky/is/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@
#
# ------------------------------------------------------------------------

# set base Docker image to CentOS Docker image
FROM rockylinux:9.3
# set base Docker image to Rocky Linux Docker image
FROM rockylinux:8
LABEL maintainer="WSO2 Docker Maintainers <[email protected]>" \
com.wso2.docker.source="https://github.com/wso2/docker-is/releases/tag/v6.1.0.5"

# Update the system to the specific 8.10 version
RUN dnf -y update && \
dnf -y distro-sync && \
dnf clean all

# Install necessary locale packages
RUN yum install -y glibc-langpack-en && \
yum install -y langpacks-en glibc-locale-source && \
Expand All @@ -32,19 +37,19 @@ ENV LANG='en_US.UTF-8' LANGUAGE='en_US:en' LC_ALL='en_US.UTF-8'
RUN yum install -y tzdata openssl ca-certificates fontconfig gzip tar nc unzip wget \
&& yum clean all

ENV JAVA_VERSION jdk-17.0.9+9
ENV JAVA_VERSION jdk-17.0.10+7

# Install JDK17
RUN set -eux; \
ARCH="$(objdump="$(command -v objdump)" && objdump --file-headers "$objdump" | awk -F '[:,]+[[:space:]]+' '$1 == "architecture" { print $2 }')"; \
case "${ARCH}" in \
amd64|i386:x86-64) \
ESUM='7b175dbe0d6e3c9c23b6ed96449b018308d8fc94a5ecd9c0df8b8bc376c3c18a'; \
BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jdk_x64_linux_hotspot_17.0.9_9.tar.gz'; \
ESUM='a8fd07e1e97352e97e330beb20f1c6b351ba064ca7878e974c7d68b8a5c1b378'; \
BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.10%2B7/OpenJDK17U-jdk_x64_linux_hotspot_17.0.10_7.tar.gz'; \
;; \
aarch64|arm64) \
ESUM='e2c5e26f8572544b201bc22a9b28f2b1a3147ab69be111cea07c7f52af252e75'; \
BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.9%2B9/OpenJDK17U-jdk_aarch64_linux_hotspot_17.0.9_9.tar.gz'; \
ESUM='6e4201abfb3b020c1fb899b7ac063083c271250bf081f3aa7e63d91291a90b74'; \
BINARY_URL='https://github.com/adoptium/temurin17-binaries/releases/download/jdk-17.0.10%2B7/OpenJDK17U-jdk_aarch64_linux_hotspot_17.0.10_7.tar.gz'; \
;; \
*) \
echo "Unsupported arch: ${ARCH}"; \
Expand Down
9 changes: 7 additions & 2 deletions dockerfiles/rocky/is/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,16 @@
#
# ------------------------------------------------------------------------

# set base Docker image to CentOS Docker image
FROM rockylinux:9.3
# set base Docker image to Rocky Linux Docker image
FROM rockylinux:8
LABEL maintainer="WSO2 Docker Maintainers <[email protected]>" \
com.wso2.docker.source="https://github.com/wso2/docker-is/releases/tag/v6.1.0.4"

# Update the system to the specific 8.10 version
RUN dnf -y update && \
dnf -y distro-sync && \
dnf clean all

# Install necessary locale packages
RUN yum install -y glibc-langpack-en && \
yum install -y langpacks-en glibc-locale-source && \
Expand Down

0 comments on commit b2e25de

Please sign in to comment.