Add Kanboard
This commit is contained in:
parent
8273663839
commit
9bc4b44226
2 changed files with 74 additions and 0 deletions
49
cfg/jobs/kanboard.run
Executable file
49
cfg/jobs/kanboard.run
Executable file
|
@ -0,0 +1,49 @@
|
|||
#!/bin/env bash
|
||||
# Upstream doc: https://docs.kanboard.org/v1/admin/installation/
|
||||
set -euxo pipefail
|
||||
|
||||
IMAGE="ubuntu/24.04"
|
||||
DIST="${IMAGE%%/*}"
|
||||
VER="${IMAGE#*/}"
|
||||
VER="${VER%/*}"
|
||||
VER="${VER//./-}"
|
||||
UPSTREAM_VER="1.2.43"
|
||||
UPSTREAM_VER_DASH="${UPSTREAM_VER//./-}"
|
||||
UPSTREAM_NAME="forgejo"
|
||||
SERIAL="1benoitjpnet"
|
||||
CNAME="$UPSTREAM_NAME-$UPSTREAM_VER_DASH-$SERIAL-$DIST-$VER"
|
||||
ALIAS="$UPSTREAM_NAME-$UPSTREAM_VER-$SERIAL"
|
||||
|
||||
cd "$WORKSPACE"
|
||||
incus launch images:$IMAGE "$CNAME" --quiet
|
||||
|
||||
wait_network "$CNAME"
|
||||
|
||||
incus exec "$CNAME" -- apt update
|
||||
incus exec "$CNAME" -- apt upgrade -y
|
||||
incus exec "$CNAME" -- apt install -y --no-install-recommends \
|
||||
apache2 \
|
||||
git \
|
||||
php \
|
||||
php-curl \
|
||||
php-dom \
|
||||
php-gd \
|
||||
php-mbstring \
|
||||
php-opcache \
|
||||
php-sqlite3 \
|
||||
php-xml \
|
||||
php-zip \
|
||||
unzip \
|
||||
wget
|
||||
|
||||
incus file push "$WORKSPACE"/setup.sh \
|
||||
"$CNAME"/tmp/
|
||||
incus exec "$CNAME" -- bash /tmp/setup.sh
|
||||
|
||||
laminarc run incus_publish \
|
||||
CNAME="$CNAME" \
|
||||
UPSTREAM_NAME=$UPSTREAM_NAME \
|
||||
UPSTREAM_VER=$UPSTREAM_VER \
|
||||
IMAGE=$IMAGE \
|
||||
SERIAL=$SERIAL \
|
||||
ALIAS=$ALIAS
|
Loading…
Add table
Add a link
Reference in a new issue