Browse Source

Update tests to Debian Trixie

J0WI 2 weeks ago
parent
commit
4a393c9c87

+ 10 - 10
test/README.md

@@ -6,7 +6,7 @@
 $ ./run.sh
 
 usage: run.sh [-t test ...] image:tag [...]
-   ie: run.sh debian:bookworm
+   ie: run.sh debian:trixie
        run.sh -t utc python:3
        run.sh -t utc python:3 -t python-imports
 
@@ -14,36 +14,36 @@ This script processes the specified Docker images to test their running
 environments.
 ```
 
-Run all the tests that are applicable to the `debian:bookworm` image:
+Run all the tests that are applicable to the `debian:trixie` image:
 
 ```console
-$ ./run.sh debian:bookworm
-testing debian:bookworm
+$ ./run.sh debian:trixie
+testing debian:trixie
 	'utc' [1/4]...passed
 	'no-hard-coded-passwords' [2/4]...passed
 	'override-cmd' [3/4]...passed
 	'debian-apt-get' [4/4]...passed
 ```
 
-Try to run just the `python-imports` test against the `debian:bookworm` image: (which doesn't contain Python)
+Try to run just the `python-imports` test against the `debian:trixie` image: (which doesn't contain Python)
 
 ```console
-$ ./run.sh -t python-imports debian:bookworm
-testing debian:bookworm
+$ ./run.sh -t python-imports debian:trixie
+testing debian:trixie
 	image has no tests...skipping
 ```
 
-Run the `utc` and `python-imports` tests against `python:3`, `pypy:3`, and `debian:bookworm`:
+Run the `utc` and `python-imports` tests against `python:3`, `pypy:3`, and `debian:trixie`:
 
 ```console
-$ ./run.sh -t utc -t python-imports python:3 pypy:3 debian:bookworm
+$ ./run.sh -t utc -t python-imports python:3 pypy:3 debian:trixie
 testing python:3
 	'utc' [1/2]...passed
 	'python-imports' [2/2]...passed
 testing pypy:3
 	'utc' [1/2]...passed
 	'python-imports' [2/2]...passed
-testing debian:bookworm
+testing debian:trixie
 	'utc' [1/1]...passed
 ```
 

+ 2 - 2
test/run.sh

@@ -9,7 +9,7 @@ usage() {
 	cat <<EOUSAGE
 
 usage: $self [-t test ...] image:tag [...]
-   ie: $self debian:bookworm
+   ie: $self debian:trixie
        $self -t utc python:3
        $self -t utc python:3 -t python-imports
 
@@ -123,7 +123,7 @@ for dockerImage in "$@"; do
 			variant='alpine'
 			;;
 		slim-*|*-slim-*)
-			# "slim-bookworm" is still "slim"
+			# "slim-trixie" is still "slim"
 			variant='slim'
 			;;
 		psmdb-*)

+ 1 - 1
test/tests/convertigo-hello-world/run.sh

@@ -6,7 +6,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 serverImage="$1"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/ghost-basics/run.sh

@@ -6,7 +6,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 serverImage="$1"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/haproxy-basics/run.sh

@@ -8,7 +8,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 
 image="$1"
 
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/jetty-hello-web/run.sh

@@ -9,7 +9,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 image="$1"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/logstash-basics/run.sh

@@ -9,7 +9,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 image="$1"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/matomo-apache-run/run.sh

@@ -4,7 +4,7 @@ set -eo pipefail
 dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/mongo-express-run/run.sh

@@ -5,7 +5,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 
 serverImage="$1"
 
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 2 - 2
test/tests/monica-fpm-run/run.sh

@@ -8,9 +8,9 @@ image="$1"
 # Build a client image with cgi-fcgi for testing
 clientImage="librarytest/monica-fpm-run:fcgi-client"
 docker build -t "$clientImage" - > /dev/null <<'EOF'
-FROM debian:bookworm-slim
+FROM debian:trixie-slim
 
-RUN set -x && apt-get update && apt-get install -y --no-install-recommends libfcgi-bin && rm -rf /var/lib/apt/lists/*
+RUN set -x && apt-get update && apt-get install -y --no-install-recommends libfcgi-bin && apt-get dist-clean
 
 ENTRYPOINT ["cgi-fcgi"]
 EOF

+ 1 - 1
test/tests/open-liberty-hello-world/run.sh

@@ -6,7 +6,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 image="$1"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/php-apache-hello-web/run.sh

@@ -6,7 +6,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 image="$1"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 2 - 2
test/tests/php-fpm-hello-web/run.sh

@@ -8,9 +8,9 @@ image="$1"
 # Build a client image with cgi-fcgi for testing
 clientImage='librarytest/php-fpm-hello-web:fcgi-client'
 docker build -t "$clientImage" - > /dev/null <<'EOF'
-FROM debian:bookworm-slim
+FROM debian:trixie-slim
 
-RUN set -x && apt-get update && apt-get install -y --no-install-recommends libfcgi-bin && rm -rf /var/lib/apt/lists/*
+RUN set -x && apt-get update && apt-get install -y --no-install-recommends libfcgi-bin && apt-get dist-clean
 
 ENTRYPOINT ["cgi-fcgi"]
 EOF

+ 1 - 1
test/tests/postfixadmin-apache-run/run.sh

@@ -4,7 +4,7 @@ set -eo pipefail
 dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 2 - 2
test/tests/postfixadmin-fpm-run/run.sh

@@ -8,9 +8,9 @@ image="$1"
 # Build a client image with cgi-fcgi for testing
 clientImage='librarytest/posfixadmin-fpm-run:fcgi-client'
 docker build -t "$clientImage" - > /dev/null <<'EOF'
-FROM debian:bookworm-slim
+FROM debian:trixie-slim
 
-RUN set -x && apt-get update && apt-get install -y --no-install-recommends libfcgi-bin && rm -rf /var/lib/apt/lists/*
+RUN set -x && apt-get update && apt-get install -y --no-install-recommends libfcgi-bin && apt-get dist-clean
 
 ENTRYPOINT ["cgi-fcgi"]
 EOF

+ 1 - 1
test/tests/redmine-basics/run.sh

@@ -6,7 +6,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 serverImage="$1"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/ruby-native-extension/run.sh

@@ -24,7 +24,7 @@ if ! docker run --rm --entrypoint sh "$image" -c 'command -v gcc' > /dev/null; t
 				RUN set -eux; \
 					apt-get update; \
 					apt-get install -y --no-install-recommends gcc make libc6-dev; \
-					rm -rf /var/lib/apt/lists/*
+					apt-get dist-clean
 			EOD
 			;;
 	esac

+ 1 - 1
test/tests/silverpeas-basics/run.sh

@@ -6,7 +6,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 image="$1"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/spiped-basics/run.sh

@@ -8,7 +8,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 
 image="$1"
 
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/tomcat-hello-world/run.sh

@@ -6,7 +6,7 @@ dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 image="$1"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 1 - 1
test/tests/wordpress-apache-run/run.sh

@@ -4,7 +4,7 @@ set -eo pipefail
 dir="$(dirname "$(readlink -f "$BASH_SOURCE")")"
 
 # Use a client image with curl for testing
-clientImage='buildpack-deps:bookworm-curl'
+clientImage='buildpack-deps:trixie-curl'
 # ensure the clientImage is ready and available
 if ! docker image inspect "$clientImage" &> /dev/null; then
 	docker pull "$clientImage" > /dev/null

+ 2 - 2
test/tests/wordpress-fpm-run/run.sh

@@ -8,9 +8,9 @@ image="$1"
 # Build a client image with cgi-fcgi for testing
 clientImage='librarytest/wordpress-fpm-run:fcgi-client'
 docker build -t "$clientImage" - > /dev/null <<'EOF'
-FROM debian:bookworm-slim
+FROM debian:trixie-slim
 
-RUN set -x && apt-get update && apt-get install -y --no-install-recommends libfcgi-bin && rm -rf /var/lib/apt/lists/*
+RUN set -x && apt-get update && apt-get install -y --no-install-recommends libfcgi-bin && apt-get dist-clean
 
 ENTRYPOINT ["cgi-fcgi"]
 EOF