Skip to content
This repository has been archived by the owner on Oct 28, 2024. It is now read-only.

Workflows image #15

Merged
merged 1 commit into from
Oct 16, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions workflows/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM quay.io/centos/centos:stream9

COPY root/ root/

RUN INSTALL_PKGS=" \
which tar wget hostname util-linux iputils \
socat tree findutils lsof bind-utils file shadow-utils \
iproute gzip procps-ng rsync iproute diffutils python3 \
python-unversioned-command git" && \
echo 'skip_missing_names_on_install=0' >> /etc/yum.conf && \
dnf install --nodocs --setopt=install_weak_deps=False -y ${INSTALL_PKGS} && \
dnf clean all && rm -rf /var/cache/*

RUN set -ex; arch=$(uname -m | sed 's/aarch64/arm64/;s/x86_64/amd64/'); \
wget -qO /usr/bin/yq "https://github.com/mikefarah/yq/releases/download/v4.32.2/yq_linux_${arch}" && \
chmod +x /usr/bin/yq

RUN set -ex; arch=$(uname -m | sed 's/aarch64/arm64/;s/x86_64/amd64/'); \
wget -qO - https://github.com/estesp/manifest-tool/releases/download/v2.0.8/binaries-manifest-tool-2.0.8.tar.gz | \
tar -C /usr/bin --transform 's/manifest-tool-linux-.*/mtl/' -xvzf - manifest-tool-linux-${arch}

RUN wget -qO - $(curl https://api.github.com/repos/okd-project/okd/releases/latest | \
yq '.assets | .[] | select(.name|test("openshift-client-linux-'$(uname -m | sed 's/x86_64//;s/aarch64/arm64-/')'4")) | .browser_download_url') | \
tar -C /usr/bin -xvzf - && rm /usr/bin/README.md

Empty file added workflows/root/.gitkeep
Empty file.