Skip to content

Commit

Permalink
Fix some container builds
Browse files Browse the repository at this point in the history
  • Loading branch information
dwoz committed Nov 12, 2024
1 parent c0d8508 commit bcb15f4
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 9 deletions.
1 change: 0 additions & 1 deletion custom/testing/fedora-40.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ RUN <<EOF
fi

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

wget https://packages.broadcom.com/artifactory/saltproject-generic/onedir/3007.1/salt-3007.1-onedir-linux-$ARCH.tar.xz
Expand Down
2 changes: 2 additions & 0 deletions custom/testing/golden-state-tree/python-pkgs/init.sls
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{#-
include:
- .nox
- .pyyaml
#}

provision-python-packages:
test.show_notification:
Expand Down
10 changes: 7 additions & 3 deletions custom/testing/photon-4.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ 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

tdnf update -y
tdnf install -y curl wget tar xz # patchelf

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
Expand Down
10 changes: 7 additions & 3 deletions custom/testing/photon-5.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,21 @@ 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

tdnf update -y
tdnf install -y curl wget tar xz # patchelf

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
Expand Down
4 changes: 2 additions & 2 deletions custom/testing/systemd-ubuntu-22.04.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ RUN apt update -y \
&& echo 'tzdata tzdata/Zones/America select Phoenix' | debconf-set-selections \
&& DEBIAN_FRONTEND="noninteractive" apt install -y \
coreutils tree tar wget xz-utils apt-utils systemd python3 python3-pip python3-venv git \
&& chmod +x entrypoint.py \
&& mv /usr/bin/tail /usr/bin/tail.real

# Set the root password, this was done before single user mode worked.
Expand All @@ -42,8 +41,9 @@ COPY rescue.service /etc/systemd/system/rescue.service.d/override.conf
# essentially doing the same thing as entrypoint.py. When pid is not 1 we just
# run tail.
COPY tail /usr/bin/tail
COPY entrypoint.py /entrypoint.py

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

ENTRYPOINT [ "/entrypoint.py" ]
CMD [ "/bin/bash" ]

0 comments on commit bcb15f4

Please sign in to comment.