deploy adjustment

This commit is contained in:
mr
2025-06-16 09:14:36 +02:00
parent 90cc774341
commit 140bd63559
6 changed files with 36 additions and 34 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
KUBERNETES_ENV_FILE=$(realpath ${1:-"./kube.exemple.env"})
HOST=${2:-"http://localhost:8000"}
export KUBERNETES_ENV_FILE=$(realpath ${KUBERNETES_ENV_FILE=:-"./kube.exemple.env"})
export HOST=${HOST:-"http://localhost:8000"}
docker network create oc | true
docker compose down
@@ -29,6 +29,6 @@ do
docker rm $i | true
cd ./$i
cp $KUBERNETES_ENV_FILE ./env.env
docker build . -t $i --build-arg=HOST=$HOST && docker compose up -d
make run-docker
cd ..
done
done