This commit is contained in:
mr
2025-04-28 14:11:18 +02:00
parent 53fca60178
commit db10baf460
4 changed files with 11 additions and 3 deletions

View File

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