From b1127130cd3e7a6eb60f99e0c58660a67060b0db Mon Sep 17 00:00:00 2001 From: Thomas Peetz Date: Tue, 27 Jan 2026 22:16:28 +0100 Subject: [PATCH] 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) --- script/bootstrap | 13 +++++++++++++ script/cibuild | 8 ++++++++ script/setup | 22 ++++++++++++++++++++++ script/test | 8 ++++++++ script/update | 8 ++++++++ 5 files changed, 59 insertions(+) create mode 100755 script/bootstrap create mode 100755 script/cibuild create mode 100755 script/setup create mode 100755 script/test create mode 100755 script/update diff --git a/script/bootstrap b/script/bootstrap new file mode 100755 index 0000000..3466ca2 --- /dev/null +++ b/script/bootstrap @@ -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 + diff --git a/script/cibuild b/script/cibuild new file mode 100755 index 0000000..458561f --- /dev/null +++ b/script/cibuild @@ -0,0 +1,8 @@ +#!/bin/sh + +# script/cibuild: + +set -e + +cd "$(dirname "$0")/.." + diff --git a/script/setup b/script/setup new file mode 100755 index 0000000..5b929d1 --- /dev/null +++ b/script/setup @@ -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 + diff --git a/script/test b/script/test new file mode 100755 index 0000000..c58f6ee --- /dev/null +++ b/script/test @@ -0,0 +1,8 @@ +#!/bin/sh + +# script/test: + +set -e + +cd "$(dirname "$0")/.." + diff --git a/script/update b/script/update new file mode 100755 index 0000000..dcab1d2 --- /dev/null +++ b/script/update @@ -0,0 +1,8 @@ +#!/bin/sh + +# script/update: + +set -e + +cd "$(dirname "$0")/.." +