Initialer commit
This commit is contained in:
18
deploy.sh
Executable file
18
deploy.sh
Executable file
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
REMOTE_CONTEXT="proxmox-remote"
|
||||
IMAGE_NAME="libredeck-web"
|
||||
TAG="latest"
|
||||
|
||||
echo "--- 1. Gradle Build: Erstelle JAR und Docker Image lokal ---"
|
||||
./gradlew bootJar
|
||||
docker build -t $IMAGE_NAME:$TAG .
|
||||
|
||||
echo "--- 2. Transfer: Image zum Proxmox-Server schieben ---"
|
||||
docker save $IMAGE_NAME:$TAG | docker --context $REMOTE_CONTEXT load
|
||||
|
||||
echo "--- 3. Remote Deployment: Starten auf Proxmox ---"
|
||||
docker --context $REMOTE_CONTEXT compose up -d --force-recreate
|
||||
|
||||
echo "--- Fertig! Backend läuft auf Port 8091 ---"
|
||||
Reference in New Issue
Block a user