Skip to content

Commit

Permalink
Merge pull request #4181 from Coduz/feat-migrationToRockylinux8-minimal
Browse files Browse the repository at this point in the history
✨ [Docker] Migrated from rockylinux:8 to rockylinux:8-minimal base image
  • Loading branch information
Coduz authored Jan 27, 2025
2 parents 2c5f15f + a6708c9 commit a02727c
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
20 changes: 17 additions & 3 deletions assembly/java-base/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,23 @@ FROM @docker.base.image@

ENV JAVA_HOME=/usr/lib/jvm/jre-openjdk

RUN yum install -y java-11-openjdk && \
yum install -y curl && \
yum install -y openssl && \
# Packages used for:
#
# Java 11: well is Java
# curl: required to download jetty, H2 and others
# openssl: SSL support
# tar: Unpack archives
# gzip: Unpack archives
# shadow-utils: To run useradd command

RUN microdnf install -y \
java-11-openjdk \
curl \
openssl \
tar \
gzip \
shadow-utils \
&& \
mkdir -p /opt/jolokia && \
curl -s @jolokia.agent.url@ -o /opt/jolokia/jolokia-jvm-agent.jar

Expand Down
2 changes: 1 addition & 1 deletion assembly/java-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<artifactId>kapua-assembly-java-base</artifactId>

<properties>
<docker.base.image>rockylinux:8</docker.base.image>
<docker.base.image>rockylinux:8-minimal</docker.base.image>
<jolokia.agent.url>https://repo1.maven.org/maven2/org/jolokia/jolokia-jvm/1.3.4/jolokia-jvm-1.3.4-agent.jar</jolokia.agent.url>
</properties>

Expand Down

0 comments on commit a02727c

Please sign in to comment.