addition of new dashboard

This commit is contained in:
2026-08-20 15:08:32 +00:00
parent 0622018d95
commit bf59249ed7
161 changed files with 13170 additions and 119 deletions

17
bin/build-frontend.sh Executable file
View File

@@ -0,0 +1,17 @@
#!/usr/bin/env bash
cd frontend
if [ ! -d node_modules ]; then
npm install
fi
set -x
npm run build
mkdir -p ../backend/ui
cp -a ./dist/index.html ../backend/ui/
cp -a ./dist/favicon.* ../backend/http/public/
rm -rf ../backend/http/public/_astro
cp -a ./dist/_astro ../backend/http/public/_astro
rm -rf ../backend/http/public/fonts
cp -a ./dist/fonts ../backend/http/public/fonts
{ set +x; } 2>/dev/null

View File

@@ -1,7 +1,10 @@
#!/usr/bin/env bash
IMAGE="registry.jlinc.io/jlinc-server"
IMAGE="jlinc-server"
TAG=$(date +'%Y%m%d.%H%M%S')
set -x
docker build -t ${IMAGE}:${TAG} .
set -xe
docker build $@ -t registry.jlinc.io/${IMAGE}:${TAG} .
docker tag registry.jlinc.io/${IMAGE}:${TAG} registry.jlinc.io/${IMAGE}:latest
docker tag registry.jlinc.io/${IMAGE}:${TAG} jlinclabs/${IMAGE}:${TAG}
docker tag registry.jlinc.io/${IMAGE}:${TAG} jlinclabs/${IMAGE}:latest
{ set +x; } 2>/dev/null

View File

@@ -1,7 +1,7 @@
#!/usr/bin/env bash
IMAGE="registry.jlinc.io/jlinc-server"
LATEST=$(docker images --format={{.Tag}} ${IMAGE} |grep -v latest |sort -n |tail -n1)
IMAGE="jlinc-server"
LATEST=$(docker images --format={{.Tag}} registry.jlinc.io/${IMAGE} |grep -v latest |sort -n |tail -n1)
if [ -z "${LATEST}" ]; then
echo "no image found"
@@ -9,7 +9,8 @@ if [ -z "${LATEST}" ]; then
fi
set -x
docker tag ${IMAGE}:${LATEST} ${IMAGE}:latest
docker push ${IMAGE}:${LATEST}
docker push ${IMAGE}:latest
docker push registry.jlinc.io/${IMAGE}:${LATEST}
docker push registry.jlinc.io/${IMAGE}:latest
docker push jlinclabs/${IMAGE}:${LATEST}
docker push jlinclabs/${IMAGE}:latest
{ set +x; } 2>/dev/null