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:
+11
-26
@@ -6,31 +6,16 @@ set -e
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
. ./version
|
||||
source version
|
||||
|
||||
echo " => Baue Image localhost/kontor-spring:$kontorVersion"
|
||||
#buildah build -t kontor-spring:$kontorVersion kontor-spring
|
||||
cd kontor-spring
|
||||
./gradlew bootJar
|
||||
cd ..
|
||||
buildah build -f Containerfile.local -t kontor-spring:$kontorVersion kontor-spring
|
||||
#echo " => Baue Python Library kontor-model:$kontorVersion"
|
||||
#cd kontor-model
|
||||
#uv sync
|
||||
#uv publish --index nexus
|
||||
#cd ..
|
||||
echo " => Baue Image localhost/kontor-api:$kontorVersion"
|
||||
buildah build -t kontor-api:$kontorVersion kontor-api
|
||||
echo " => Baue Image localhost/kontor-quarkus:$kontorVersion"
|
||||
buildah build -t kontor-quarkus:$kontorVersion kontor-quarkus
|
||||
echo " => Baue Image localhost/kontor-echo:$kontorVersion"
|
||||
buildah build -t kontor-echo:$kontorVersion kontor-echo
|
||||
echo " => Baue Image localhost/kontor-fiber:$kontorVersion"
|
||||
buildah build -t kontor-fiber:$kontorVersion kontor-fiber
|
||||
echo " => Baue Image localhost/kontor-javalin:$kontorVersion"
|
||||
buildah build -t kontor-javalin:$kontorVersion kontor-javalin
|
||||
echo " => Baue Image localhost/kontor-vue:$kontorVersion"
|
||||
buildah build -t kontor-vue:$kontorVersion kontor-vue
|
||||
echo " => Baue Image localhost/kontor-angular:$kontorVersion"
|
||||
buildah build -t kontor-angular:$kontorVersion kontor-angular
|
||||
kontor-spring/cibuild
|
||||
#kontor-model/cibuild
|
||||
#kontor-api/cibuild
|
||||
kontor-quarkus/cibuild
|
||||
kontor-echo/cibuild
|
||||
kontor-fiber/cibuild
|
||||
kontor-gin/cibuild
|
||||
kontor-javalin/cibuild
|
||||
kontor-vue/cibuild
|
||||
kontor-angular/cibuild
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ else
|
||||
--pod kontor \
|
||||
--name kontor-angular \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-angular.service" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=kontor-angular.service" \
|
||||
localhost/kontor-angular:$kontorVersion
|
||||
fi
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ else
|
||||
--pod kontor \
|
||||
--name kontor-api \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-api.service" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=kontor-api.service" \
|
||||
--health-cmd='curl -f http://kontor-api:8200/health || exit 1' \
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
|
||||
@@ -24,7 +24,7 @@ else
|
||||
--pod kontor \
|
||||
--name kontor-echo \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-echo.service" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=kontor-echo.service" \
|
||||
--health-cmd='curl -f http://kontor-echo:8400/health || exit 1' \
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
|
||||
@@ -24,7 +24,7 @@ else
|
||||
--pod kontor \
|
||||
--name kontor-fiber \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-fiber.service" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=kontor-fiber.service" \
|
||||
--health-cmd='curl -f http://kontor-echo:8500/health || exit 1' \
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
|
||||
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
|
||||
@@ -26,7 +26,7 @@ else
|
||||
--pod kontor \
|
||||
--name kontor-javalin \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-javalin.service" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=kontor-javalin.service" \
|
||||
--health-cmd='curl -f http://kontor-echo:8600/health || exit 1' \
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
|
||||
@@ -24,7 +24,7 @@ else
|
||||
--pod kontor \
|
||||
--name kontor-quarkus \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-quarkus.service" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=kontor-quarkus.service" \
|
||||
--health-cmd='curl -f http://kontor-quarkus:8300/q/health || exit 1' \
|
||||
--health-interval=1s \
|
||||
--health-timeout=5s \
|
||||
|
||||
@@ -24,7 +24,7 @@ else
|
||||
--pod kontor \
|
||||
--name kontor-spring \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-spring.service" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=kontor-spring.service" \
|
||||
localhost/kontor-spring:$kontorVersion
|
||||
fi
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ else
|
||||
--pod kontor \
|
||||
--name kontor-vue \
|
||||
--label "io.containers.autoupdate=local" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=container-kontor-vue.service" \
|
||||
--label "PODMAN_SYSTEMD_UNIT=kontor-vue.service" \
|
||||
localhost/kontor-vue:$kontorVersion
|
||||
fi
|
||||
|
||||
|
||||
@@ -25,7 +25,7 @@ else
|
||||
--secret source=pg_password,type=env,target=POSTGRES_PASSWORD \
|
||||
-e POSTGRES_DB=kontor \
|
||||
-e POSTGRES_USER=kontor \
|
||||
-e POSTGRES_HOST_AUTH_METHOD=scram-sha-256 \
|
||||
-e POSTGRES_HOST_AUTH_METHOD=scram-sha-256 \
|
||||
-v kontor-db:/var/lib/postgresql/data \
|
||||
--health-cmd='pg_isready -U kontor || exit 1' \
|
||||
--health-interval=1s \
|
||||
|
||||
@@ -26,6 +26,7 @@ else
|
||||
-p 8300:8300 \
|
||||
-p 8400:8400 \
|
||||
-p 8500:8500 \
|
||||
-p 8550:8550 \
|
||||
-p 8600:8600 \
|
||||
-p 8700:8700 \
|
||||
-p 8800:8800 \
|
||||
|
||||
+3
-1
@@ -22,7 +22,7 @@ script/create_container_activemq
|
||||
|
||||
script/create_container_kontor-spring
|
||||
|
||||
script/create_container_kontor-api
|
||||
#script/create_container_kontor-api
|
||||
|
||||
script/create_container_kontor-quarkus
|
||||
|
||||
@@ -30,6 +30,8 @@ script/create_container_kontor-echo
|
||||
|
||||
script/create_container_kontor-fiber
|
||||
|
||||
script/create_container_kontor-gin
|
||||
|
||||
script/create_container_kontor-javalin
|
||||
|
||||
script/create_container_kontor-vue
|
||||
|
||||
Reference in New Issue
Block a user