Demo
This commit is contained in:
16
k8s/start.sh
16
k8s/start.sh
@@ -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
|
||||
Reference in New Issue
Block a user