Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ [Docker] Further Docker images footprints improvements #4184

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading