Skip to content

Commit ad2fe97

Browse files
committed
Move grep and gawk installation to phase-1
Signed-off-by: Jayashree Huttanagoudar <[email protected]>
1 parent c540151 commit ad2fe97

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

templates/jlink/jlink-builder/jlink-builder-template.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,15 @@ objects:
2929
dockerfile: |
3030
FROM -
3131
USER 0
32-
RUN microdnf --setopt=install_weak_deps=0 --setopt=tsflags=nodocs install -y java-${JDK_VERSION}-openjdk-jmods
32+
RUN mkdir -p /mnt/jrootfs
33+
RUN microdnf install --installroot /mnt/jrootfs --releasever 9 --setopt install_weak_deps=0 --nodocs -y java-${JDK_VERSION}-openjdk-jmods \
34+
--config=/etc/dnf/dnf.conf \
35+
--noplugins \
36+
--setopt=cachedir=/var/cache \
37+
--setopt=reposdir=/etc/yum.repos.d \
38+
--setopt=varsdir=/etc/dnf/vars \
39+
grep gawk
40+
RUN rm -rf /mnt/jrootfs/var/cache/* /mnt/jrootfs/var/lib/rpm /mnt/jrootfs/var/lib/dnf
3341
USER 185
3442
strategy:
3543
dockerStrategy:

0 commit comments

Comments
 (0)