oc-k8s + bootstrap_dht

This commit is contained in:
mr
2026-01-27 16:04:45 +01:00
parent be080d7511
commit a4210d08c4
21 changed files with 875 additions and 78 deletions

View File

@@ -2,6 +2,9 @@
mode=${1:-dev}
branch=${2:-main}
clustername=${3:-opencloud}
path=${4:-.}
port=${5:-80}
portTLS=${6:-443}
if [ ! -d "oc-k8s" ]; then
echo "Cloning repository: $repo_name"
@@ -17,5 +20,11 @@ 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
if [ -f "./conf/$clustername.conf" ]; then
oc-k8s create values -r $clustername -f $path -c "./conf/$clustername.conf"
else
oc-k8s create values -r $clustername -f $path
fi
oc-k8s install
oc-k8s start -f $path -r $clustername -n $clustername -t $mode -b $branch -p $port -P $portTLS