Little helper to run CNCF's k3s in Docker
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
k3d/pkg/types/fixes/assets/k3d-entrypoint.sh

19 lines
451 B

#!/bin/sh
set -o errexit
set -o nounset
LOGFILE="/var/log/k3d-entrypoints_$(date "+%y%m%d%H%M%S").log"
touch "$LOGFILE"
echo "[$(date -Iseconds)] Running k3d entrypoints..." >> "$LOGFILE"
for entrypoint in /bin/k3d-entrypoint-*.sh ; do
echo "[$(date -Iseconds)] Running $entrypoint" >> "$LOGFILE"
"$entrypoint" >> "$LOGFILE" 2>&1 || exit 1
done
echo "[$(date -Iseconds)] Finished k3d entrypoint scripts!" >> "$LOGFILE"
exec /bin/k3s "$@"