Setup scripts to bootstrap, build and update the aplication

refs #36

The scripts are created and will be extended when adding subprojects.

(cherry picked from commit f688fb939c0f754ab70a4c0a014f00e42ff2f9eb)
This commit is contained in:
2026-01-27 22:16:28 +01:00
parent a196f25526
commit 5659d116c5
5 changed files with 59 additions and 0 deletions
+13
View File
@@ -0,0 +1,13 @@
#!/bin/sh
# script/bootstrap: Resolve all dependencies that the application requires to run
set -e
cd "$(dirname "$0")/.."
if command -v podman &> /dev/null; then
sudo apt-get update &> /dev/null
sudo apt-get install podman
fi
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
# script/cibuild:
set -e
cd "$(dirname "$0")/.."
Executable
+22
View File
@@ -0,0 +1,22 @@
#!/bin/sh
# script/setup: Set up container for the first time after cloning
set -e
cd "$(dirname "$0")/.."
script/bootstrap
echo "==> Setting up pod kontor"
if podman pod exists kontor; then
echo " => pod kontor exists"
else
podman pod create --name kontor \
--infra \
-p 5432:5432 \
-p 8100:8100 \
-p 8200:8200 \
--network bridge
fi
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
# script/test:
set -e
cd "$(dirname "$0")/.."
Executable
+8
View File
@@ -0,0 +1,8 @@
#!/bin/sh
# script/update:
set -e
cd "$(dirname "$0")/.."