oc-deploy/k8s/start.sh

22 lines
510 B
Bash
Raw Normal View History

2025-03-27 13:21:52 +01:00
#!/bin/bash
mode=${1:-dev}
branch=${2:-main}
cd ../..
2025-04-01 10:13:55 +02:00
if [ ! -d "oc-k8s" ]; then
2025-03-27 13:21:52 +01:00
echo "Cloning repository: $repo_name"
git clone "https://cloud.o-forge.io/core/oc-k8s.git"
if [ $? -ne 0 ]; then
echo "Error cloning oc-k8s"
exit 1
fi
fi
echo "Repository 'oc-k8s' already exists. Pulling latest changes..."
cd "oc-k8s" && git checkout $branch && git pull
./create_kind_cluster.sh
./clone_opencloud_microservices.sh $branch
./build_opencloud_microservices.sh
./install.sh $mode