From cc250fe23414a47ec940f781203b249c136064d1 Mon Sep 17 00:00:00 2001 From: kabicin <37311900+kabicin@users.noreply.github.com> Date: Thu, 7 Aug 2025 09:50:14 -0400 Subject: [PATCH 1/2] Install required packages for linperf.sh --- Dockerfile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Dockerfile b/Dockerfile index e7b4ccd2..c63a3c04 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,6 +15,10 @@ LABEL \ summary="Sample app running on Open Liberty that uses Eclipse MicroProfile" \ description="This image contains a sample application that displays the Java system properties and demonstrates MicroProfile Config, Health and Metrics." +USER 0 +RUN command -v yum && pkgcmd=yum || pkgcmd=microdnf && $pkgcmd update -y && $pkgcmd install -y procps-ng net-tools ncurses hostname +USER 1001 + COPY --chown=1001:0 src/main/liberty/config/ /config/ RUN features.sh From c3321c7d7983c80811e9cd1a97d3bc24185b3209 Mon Sep 17 00:00:00 2001 From: kabicin <37311900+kabicin@users.noreply.github.com> Date: Mon, 18 Aug 2025 14:17:34 -0400 Subject: [PATCH 2/2] Add comment and parenthesize the package command --- Dockerfile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index c63a3c04..7d10d0f9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,8 +15,9 @@ LABEL \ summary="Sample app running on Open Liberty that uses Eclipse MicroProfile" \ description="This image contains a sample application that displays the Java system properties and demonstrates MicroProfile Config, Health and Metrics." +# Install required packages to run linperf.sh USER 0 -RUN command -v yum && pkgcmd=yum || pkgcmd=microdnf && $pkgcmd update -y && $pkgcmd install -y procps-ng net-tools ncurses hostname +RUN command -v yum && pkgcmd=yum || pkgcmd=microdnf && ($pkgcmd update -y && $pkgcmd install -y procps-ng net-tools ncurses hostname) USER 1001 COPY --chown=1001:0 src/main/liberty/config/ /config/