Skip to content

Commit a859973

Browse files
authored
Merge pull request #472 from jhuttana/phase-1-update
[OPENJDK-2735] Move grep and gawk installation to phase-1
2 parents c540151 + 724f549 commit a859973

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

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

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

0 commit comments

Comments
 (0)