-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
131 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
FROM photon:5.0 | ||
|
||
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 | ||
|
||
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 python | ||
|
||
rm -rf salt | ||
rm -rf salt-3007.1-onedir-linux-$ARCH.tar.xz | ||
rm -rf golden-pillar-tree | ||
rm -rf golden-state-tree | ||
|
||
mv /usr/bin/tail /usr/bin/tail.real | ||
EOF | ||
|
||
COPY rescue.service /etc/systemd/system/rescue.service.d/override.conf | ||
COPY tail /usr/bin/tail | ||
COPY entrypoint.py /entrypoint.py | ||
RUN chmod +x /usr/bin/tail /entrypoint.py | ||
|
||
ENTRYPOINT [ "/entrypoint.py" ] | ||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
FROM rockylinux:9 | ||
|
||
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 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 python | ||
|
||
rm -rf salt | ||
rm -rf salt-3007.1-onedir-linux-$ARCH.tar.xz | ||
rm -rf golden-pillar-tree | ||
rm -rf golden-state-tree | ||
|
||
mv /usr/bin/tail /usr/bin/tail.real | ||
EOF | ||
|
||
COPY rescue.service /etc/systemd/system/rescue.service.d/override.conf | ||
COPY tail /usr/bin/tail | ||
COPY entrypoint.py /entrypoint.py | ||
RUN chmod +x /usr/bin/tail /entrypoint.py | ||
|
||
ENTRYPOINT [ "/entrypoint.py" ] | ||
CMD ["/bin/bash"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters