Skip to content

Commit

Permalink
Fix up rocky 8 systemd
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Nov 13, 2024
1 parent b3b7470 commit 87baffe
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion custom/testing/systemd-rockylinux-8.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,34 @@ FROM rockylinux:8
COPY golden-pillar-tree golden-pillar-tree
COPY golden-state-tree golden-state-tree

SHELL ["/bin/bash", "-c"]

RUN <<EOF
set -e

if [ $(uname -m) = "x86_64" ]; then
export ARCH=x86_64
else
export ARCH=arm64
fi

yum update -y
yum install -y epel-release
yum install -y curl wget tar xz patchelf
yum install -y curl wget tar xz patchelf systemd

wget https://packages.broadcom.com/artifactory/saltproject-generic/onedir/3007.1/salt-3007.1-onedir-linux-$ARCH.tar.xz
tar xf salt-3007.1-onedir-linux-$ARCH.tar.xz

./salt/salt-call --local --pillar-root=/golden-pillar-tree --file-root=/golden-state-tree state.apply provision

rm -rf salt
rm -rf salt-3007.1-onedir-linux-$ARCH.tar.xz
rm -rf golden-pillar-tree
rm -rf golden-state-tree
EOF

COPY tail /usr/bin/tail
COPY entrypoint.py /entrypoint.py
RUN chmod +x /usr/bin/tail /entrypoint.py

CMD ["/bin/bash"]

0 comments on commit 87baffe

Please sign in to comment.