This commit is contained in:
mr
2026-01-12 13:35:25 +01:00
parent cc8d599ce5
commit be080d7511
14 changed files with 78 additions and 12 deletions

View File

@@ -1,8 +1,7 @@
#!/bin/bash
mode=${1:-dev}
branch=${2:-main}
cd ../..
clustername=${3:-opencloud}
if [ ! -d "oc-k8s" ]; then
echo "Cloning repository: $repo_name"
@@ -12,10 +11,11 @@ if [ ! -d "oc-k8s" ]; then
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
cp -rf ./datas/$clustername ./oc-k8s/opencloud/charts/mongodb/start_files
echo "Repository 'oc-k8s' already exists. Pulling latest changes..."
cd "oc-k8s" && git checkout main && git pull
export CLUSTER_NAME=$clustername ./oc-k8s.sh create values $mode
./oc-k8s.sh start $mode $branch