Skip to content

Commit

Permalink
Fixed issues with nfs-utils & sssd-common packages (#54)
Browse files Browse the repository at this point in the history
Switched to dnf install for better dependency resolution
Removed Base/Anaconda Tools as they are not needed
Switched to released dockerfile frontend with mount type secret support
  • Loading branch information
plnordquist authored Mar 16, 2023
1 parent 95f1d27 commit 06ba9e0
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions containers/rpms-node-base9/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# syntax = docker/dockerfile:1.0-experimental
# syntax = docker/dockerfile:1.2
FROM rockylinux:9
MAINTAINER Kevin Fox <Kevin.Fox@pnnl.gov>

Expand All @@ -10,14 +10,10 @@ RUN --mount=type=secret,id=gpg \
set -e && \
yum install -y createrepo yum-utils gnupg2 rpm-sign && \
mkdir -p rpms/ && \
BASE=$(dnf group info base | grep '^ \w' | awk '{print $1}') && \
CORE=$(dnf group info core | grep '^ \w' | awk '{print $1}') && \
ANACONDA_TOOLS=$(dnf group info anaconda-tools | grep '^ \w' | awk '{print $1}') && \
repotrack --alldeps --resolve --installroot=/tmp/root --releasever=/ \
--destdir rpms --setopt cachedir=/tmp/cache --downloadonly \
$BASE $CORE $ANACONDA_TOOLS grub2-efi-x64 kernel grub2 e2fsprogs \
nspr nss-util openssh-server openssh iptables-services \
nfs-utils authconfig psmisc libibverbs qemu-guest-agent libsss_sudo && \
dnf install --installroot=/tmp/root --releasever=/ --downloadonly \
--destdir rpms -y @core grub2-efi-x64 kernel grub2 e2fsprogs nspr nss-util \
openssh-server openssh iptables-services nfs-utils authconfig psmisc \
libibverbs qemu-guest-agent libsss_sudo && \
gpg --import /run/secrets/gpg && \
gpg --import /root/rpm.pub && \
rpm --addsign $(find rpms -type f -name '*.rpm') && \
Expand Down

0 comments on commit 06ba9e0

Please sign in to comment.