update kontor-fiber to use Go Fiber v3
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 4s
This commit is contained in:
Executable
+33
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
|
||||
# script/setup: Set up container for the first time after cloning
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
source version
|
||||
|
||||
script/bootstrap
|
||||
|
||||
echo "==> Setting up container kontor-gin"
|
||||
if podman image exists localhost/kontor-gin:$kontorVersion; then
|
||||
echo " => Image localhost/kontor-gin:$kontorVersion available"
|
||||
fi
|
||||
if podman container exists kontor-gin; then
|
||||
if podman ps -q --filter "name=kontor-gin"; then
|
||||
echo " => kontor-gin is running"
|
||||
fi
|
||||
else
|
||||
podman run -d \
|
||||
--replace \
|
||||
--pod kontor \
|
||||
--name kontor-gin \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=kontor-gin.service" \
|
||||
--health-cmd='curl -f http://kontor-echo:8550/health || exit 1' \
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
--health-retries=10 \
|
||||
localhost/kontor-gin:$kontorVersion
|
||||
fi
|
||||
Reference in New Issue
Block a user