Skip to content

Commit

Permalink
Merge pull request #4184 from Coduz/feat-furtherDockerImagesFootprint…
Browse files Browse the repository at this point in the history
…Improvements

Feat further docker images footprint improvements
  • Loading branch information
Coduz authored Jan 28, 2025
2 parents 77f9ef3 + fbcb131 commit 171c17d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
13 changes: 7 additions & 6 deletions assembly/java-base/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
###############################################################################
# Copyright (c) 2018, 2022 Eurotech and/or its affiliates and others
# Copyright (c) 2018, 2025 Eurotech and/or its affiliates and others
#
# This program and the accompanying materials are made
# available under the terms of the Eclipse Public License 2.0
Expand All @@ -16,24 +16,25 @@ FROM @docker.base.image@

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

# Packages used for:
# Install packages
#
# 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-headless \
curl \
openssl \
tar \
gzip \
shadow-utils \
&& \
mkdir -p /opt/jolokia && \
shadow-utils && \
microdnf clean all

# Install Jolokia agent
RUN mkdir -p /opt/jolokia && \
curl -s @jolokia.agent.url@ -o /opt/jolokia/jolokia-jvm-agent.jar

# Generate X509 certificate and private key
Expand Down
1 change: 1 addition & 0 deletions assembly/jetty-base/docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ RUN useradd -u 1000 -g 0 -d '/var/opt/jetty' -s '/sbin/nologin' jetty && \
curl -Ls @jetty.url@ -o /tmp/jetty.tar.gz && \
tar --strip=1 -xzf /tmp/jetty.tar.gz -C /opt/jetty && \
rm -f /tmp/jetty.tar.gz && \
rm -rf /opt/jetty/demo-base && \
cd /var/opt/jetty && \
java -jar /opt/jetty/start.jar --approve-all-licenses --create-startd --add-to-start=http,https,jsp,jstl,websocket,deploy,logging-logback,jmx,ssl,stats && \
chown -R 1000:0 /opt/jetty /var/opt/jetty && \
Expand Down

0 comments on commit 171c17d

Please sign in to comment.