From 2d3e3dc6c31c7cd9f5a031c81259ca84393e388f Mon Sep 17 00:00:00 2001 From: Jeffrey Faer Date: Tue, 19 Mar 2024 21:43:23 -0600 Subject: [PATCH] fix(bash): Fix bash tests. testprog was failing with "cannot execute: required file not found". Some Google sleuthing found that it was probably because libc6 was missing. Redhat has a similar error where it was complaining that glibc v2.32 was missing. ubi8 only seemed to be able to install v2.28, but ubi9 runs testprog without any other tweaks. Signed-off-by: Jeffrey Faer --- tests/test-all.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/test-all.sh b/tests/test-all.sh index d4aa572..85b441b 100755 --- a/tests/test-all.sh +++ b/tests/test-all.sh @@ -50,7 +50,7 @@ if [ $TARGET = bash ]; then $CONTAINER_ENGINE build -t ${IMAGE} ${BASE_DIR} -f - <<- EOF FROM bash:5.1 - RUN apk update && apk add bash-completion ca-certificates + RUN apk update && apk add bash-completion ca-certificates libc6-compat WORKDIR /work COPY . . @@ -78,7 +78,7 @@ if [ $TARGET = bash ]; then $CONTAINER_ENGINE build -t ${IMAGE} ${BASE_DIR} -f - <<- EOF FROM bash:4.4 - RUN apk update && apk add bash-completion ca-certificates + RUN apk update && apk add bash-completion ca-certificates libc6-compat WORKDIR /work COPY . . @@ -106,7 +106,7 @@ if [ $TARGET = bash ]; then $CONTAINER_ENGINE build -t ${IMAGE} ${BASE_DIR} -f - <<- EOF FROM bash:3.2 - RUN apk update && apk add ca-certificates + RUN apk update && apk add ca-certificates libc6-compat # For bash 3.2, the bash-completion package required is version 1.3 RUN mkdir /usr/share/bash-completion && \ wget -qO - https://github.com/scop/bash-completion/archive/1.3.tar.gz | \ @@ -139,7 +139,7 @@ if [ $TARGET = bash ]; then IMAGE=comp-test:bashredhat $CONTAINER_ENGINE build -t ${IMAGE} ${BASE_DIR} -f - <<- EOF - FROM redhat/ubi8 + FROM redhat/ubi9 RUN yum install -y bash-completion which bc WORKDIR /work