taler-deployment

Deployment scripts and configuration files
Log | Files | Refs | README

commit 62a1eed60aa20733caf8bcb6c981aff5448e0991
parent 43a052473e6e786e363229e22cdd5743a57e3867
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 13 Jan 2025 23:37:01 +0100

de-containerize, less complexity

Diffstat:
Dworker-linkchecker/linkchecker.Containerfile | 10----------
Mworker-linkchecker/linkchecker.sh | 11++++++-----
2 files changed, 6 insertions(+), 15 deletions(-)

diff --git a/worker-linkchecker/linkchecker.Containerfile b/worker-linkchecker/linkchecker.Containerfile @@ -1,10 +0,0 @@ -FROM docker.io/library/debian:bookworm-slim - -ENV DEBIAN_FRONTEND=noninteractive - -RUN apt-get update && \ - apt-get install -yqq \ - linkchecker \ -&& rm -rf /var/lib/apt/lists/* - -COPY linkcheckerrc /root/.config/linkchecker/linkcheckerrc diff --git a/worker-linkchecker/linkchecker.sh b/worker-linkchecker/linkchecker.sh @@ -1,4 +1,5 @@ #!/bin/bash +# This file is in the public domain. #set -v # Removed because wget errors with error 8 (Server issued an error response.) #set -e @@ -20,13 +21,12 @@ if [ -f "$logfile" ] echo "Info: existing log file '$logfile' not found." fi -podman build -t linkchecker:latest -f "$HOME/taler-deployment/worker-linkchecker/linkchecker.Containerfile" "$HOME/taler-deployment/worker-linkchecker" - # Use wget to scan hosts and save output -for url in "https://www.taler.net/" "https://docs.taler.net/" "https://taler-systems.com/" "https://demo.taler.net/" "https://bank.demo.taler.net/" "https://shop.demo.taler.net/" "https://donations.demo.taler.net/" ; do +for url in "https://taler.net/" "https://docs.taler.net/" "https://taler-systems.com/" "https://demo.taler.net/" "https://bank.demo.taler.net/" "https://shop.demo.taler.net/" "https://stage.taler.net/" "https://stage.taler-ops.ch/" "https://taler-ops.ch/" "https://donations.demo.taler.net/" ; +do echo -e "\n\n#############################\n## Starting check on ${url}\n#############################\n" - podman run --rm localhost/linkchecker:latest \ - linkchecker \ + linkchecker \ + -f taler-deployment/worker-linkchecker/linkcheckerrc --no-robots \ --check-extern \ --recursion-level="$recurse_level" \ @@ -37,6 +37,7 @@ done if grep -Rl 'Error' $logfile then echo "Found broken links. Build should fail (exit 1), triggering e-mail notification." + cat $logfile exit 1 else echo "No broken links found. Nothing more to do."