From 07ba0d71cb51ff8f14f5a2fe0e5310863121026d Mon Sep 17 00:00:00 2001 From: Andrew Obuchowicz Date: Fri, 10 May 2024 15:07:24 -0400 Subject: [PATCH] Fix: pin stow to version 2.3.1 Signed-off-by: Andrew Obuchowicz --- base/ubi8/Dockerfile | 26 +++++++++++++++++++++++++- 1 file changed, 25 insertions(+), 1 deletion(-) diff --git a/base/ubi8/Dockerfile b/base/ubi8/Dockerfile index c29a666..7b20502 100644 --- a/base/ubi8/Dockerfile +++ b/base/ubi8/Dockerfile @@ -25,7 +25,7 @@ RUN mkdir -p /home/tooling/ RUN dnf install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm && \ dnf update -y && \ dnf install -y bash curl diffutils git git-lfs iproute jq less lsof man nano procps p7zip p7zip-plugins \ - perl-Digest-SHA net-tools openssh-clients rsync socat sudo time vim wget zip stow && \ + perl-Digest-SHA net-tools openssh-clients rsync socat sudo time vim wget zip make && \ dnf clean all ## gh-cli @@ -91,6 +91,30 @@ RUN \ cd - && \ rm -rf "${TEMP_DIR}" +## stow +RUN \ + TEMP_DIR="$(mktemp -d)"; \ + cd "${TEMP_DIR}"; \ + STOW_VERSION="2.3.1"; \ + STOW_TGZ="stow-${STOW_VERSION}.tar.gz"; \ + GNU_KEYRING="gnu-keyring.gpg"; \ + STOW_TGZ_URL="http://ftpmirror.gnu.org/stow/${STOW_TGZ}"; \ + STOW_CHEKSUMS_URL="http://ftpmirror.gnu.org/stow/${STOW_TGZ}.sig"; \ + GNU_KEYRING_URL="https://ftp.gnu.org/gnu/gnu-keyring.gpg"; \ + curl -sSLO "${STOW_TGZ_URL}" && \ + curl -sSLO "${STOW_CHEKSUMS_URL}" && \ + curl -sSLO "${GNU_KEYRING_URL}" && \ + gpg --verify --keyring ./${GNU_KEYRING} "${STOW_TGZ}".sig "${STOW_TGZ}" && \ + rm -rf ${HOME}/.gnupg && \ + tar -zxv --no-same-owner -f "${STOW_TGZ}" && \ + cd stow-${STOW_VERSION} && \ + mkdir -p ./build && \ + ./configure --prefix=${TEMP_DIR}/build && \ + make install && \ + cp -r ${TEMP_DIR}/build/bin/. /usr/bin/ && \ + cp -r ${TEMP_DIR}/build/share/. /usr/share/ && \ + stow --version + COPY --chown=0:0 entrypoint.sh / COPY --chown=0:0 .stow-local-ignore /home/tooling/ RUN \