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:
Executable
+13
@@ -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
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# script/cibuild:
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
Executable
+22
@@ -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
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# script/test:
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
Executable
+8
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# script/update:
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cd "$(dirname "$0")/.."
|
||||||
|
|
||||||
Reference in New Issue
Block a user