Skip to content

Commit

Permalink
Fix: pin stow to version 2.3.1
Browse files Browse the repository at this point in the history
Signed-off-by: Andrew Obuchowicz <[email protected]>
  • Loading branch information
AObuchow committed May 14, 2024
1 parent 5e6f339 commit 8627963
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion base/ubi8/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 \
Expand Down

0 comments on commit 8627963

Please sign in to comment.