1
0
Fork 0

Drop certificates and script

This commit is contained in:
Jesper Noordsij 2025-12-22 15:36:05 +01:00 committed by GitHub
parent f726a50038
commit 1d445d5c9d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 0 additions and 3841 deletions

File diff suppressed because it is too large Load diff

View file

@ -1,23 +0,0 @@
#!/bin/sh
set -e
CERT_IMAGE="alpine:edge"
# cd to the current directory so the script can be run from anywhere.
SCRIPT_DIR="$( cd "$( dirname "${0}" )" && pwd -P)"; export SCRIPT_DIR
cd "${SCRIPT_DIR}"
# Update the cert image.
docker pull $CERT_IMAGE
# Fetch the latest certificates.
ID=$(docker run -d $CERT_IMAGE sh -c "apk --update upgrade && apk add ca-certificates && update-ca-certificates")
docker logs -f "${ID}"
docker wait "${ID}"
# Update the local certificates.
docker cp "${ID}":/etc/ssl/certs/ca-certificates.crt "${SCRIPT_DIR}"
# Cleanup.
docker rm -f "${ID}"