大量更新
This commit is contained in:
@@ -1,16 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
|
||||
# internet
|
||||
bash <(curl -sL http://42.192.52.227:9000/octopus/init-script-wdd.sh) --url http://42.192.52.227:9000/octopus --agent-install --offline
|
||||
|
||||
# no internet
|
||||
|
||||
export offline_minio=10.250.0.100
|
||||
bash <(curl -sL http://${offline_minio}:9000/octopus/init-script-wdd.sh) --url http://${offline_minio}:9000/octopus --help
|
||||
|
||||
bash <(curl -sL http://${offline_minio}:9000/octopus/init-script-wdd.sh) --url http://${offline_minio}:9000/octopus --zsh --tools --cn
|
||||
|
||||
bash <(curl -sL http://${offline_minio}:9000/octopus/init-script-wdd.sh) --url http://${offline_minio}:9000/octopus --agent-install --offline
|
||||
|
||||
bash <(curl -sL http://${offline_minio}:9000/octopus/init-script-wdd.sh) --url http://${offline_minio}:9000/octopus --agent-update --offline
|
||||
@@ -1,46 +0,0 @@
|
||||
#!/bin/bash
|
||||
# 替换namespace
|
||||
# 替换minio的实际地址和端口
|
||||
# 修改rabbitmq的实际地址和端口,需要暴露出来
|
||||
|
||||
curl https://dl.min.io/client/mc/release/linux-amd64/mc -o /usr/local/bin/mc
|
||||
chmod +x /usr/local/bin/mc
|
||||
|
||||
|
||||
export tenant_name=outside
|
||||
mc alias set ${tenant_name} https://minio.ig-dev.uavcmlc.com cmii B#923fC7mk
|
||||
|
||||
|
||||
mc mb ${tenant_name}/jadenq ${tenant_name}/tus ${tenant_name}/thumbnail ${tenant_name}/pub-cms ${tenant_name}/live-srs-hls/ ${tenant_name}/mission/ ${tenant_name}/surveillance ${tenant_name}/playback ${tenant_name}/tower ${tenant_name}/modelprocess ${tenant_name}/srs-hls ${tenant_name}/live-cluster-hls
|
||||
|
||||
|
||||
# mc alias set demo https://oss.demo.uavcmlc.com cmii B#923fC7mk
|
||||
#
|
||||
# mc cp -r demo/jadenq/scenariomock/xg/ ${tenant_name}/jadenq/scenariomock/xg/
|
||||
# mc cp demo/jadenq/application/file/中移凌云使用手册.pdf ${tenant_name}/jadenq/application/file/中移凌云使用手册.pdf
|
||||
# mc cp -r demo/jadenq/defimage/def.jpg ${tenant_name}/jadenq/defimage/def.jpg
|
||||
# mc cp -r demo/pub-cms/application/img/ ${tenant_name}/pub-cms/application/img/
|
||||
|
||||
|
||||
mc admin config set ${tenant_name} notify_amqp:1 delivery_mode="2" exchange_type="direct" no_wait="off" queue_dir="" queue_limit="0" url="amqp://admin:nYcRN91r._hj@10.250.0.200:35672" auto_deleted="off" durable="on" exchange="cmii.chinamobile.minio.event" internal="off" mandatory="off" routing_key="cmii.chinamobile.material.warehouse"
|
||||
|
||||
sleep 5
|
||||
|
||||
mc admin service restart ${tenant_name}
|
||||
|
||||
mc event add ${tenant_name}/mission arn:minio:sqs::1:amqp --event put
|
||||
|
||||
mc event add ${tenant_name}/modelprocess arn:minio:sqs::1:amqp --event put
|
||||
|
||||
mc event add ${tenant_name}/live-srs-hls arn:minio:sqs::1:amqp --event put
|
||||
|
||||
mc event add ${tenant_name}/playback arn:minio:sqs::1:amqp --event put
|
||||
|
||||
mc event add ${tenant_name}/live-cluster-hls arn:minio:sqs::1:amqp --event put
|
||||
|
||||
mc event add ${tenant_name}/surveillance arn:minio:sqs::1:amqp --event put
|
||||
|
||||
mc event add ${tenant_name}/tus arn:minio:sqs::1:amqp --event delete
|
||||
|
||||
mc ilm add --expiry-days "1" ${tenant_name}/tus
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
nfs_data_path="/var/lib/docker/nfs_data"
|
||||
#nfs_data_path="/data/nfs_data"
|
||||
#nfs_data_path="/var/lib/docker/nfs_data"
|
||||
nfs_data_path="/data/nfs_data"
|
||||
|
||||
|
||||
deploy_nfs_server(){
|
||||
|
||||
@@ -1,9 +1,9 @@
|
||||
#!/bin/bash
|
||||
|
||||
minio_local_path=/var/lib/docker/minio-pv/pv1
|
||||
harbor_host=172.31.2.7:8033/admin
|
||||
inner_master_ip=172.31.2.7
|
||||
minio_host_ip=172.31.2.9
|
||||
harbor_host=192.168.233.100:8033
|
||||
inner_master_ip=192.168.233.100
|
||||
minio_host_ip=192.168.233.100
|
||||
|
||||
install_minio(){
|
||||
|
||||
@@ -16,19 +16,20 @@ install_minio(){
|
||||
|
||||
cat > /root/wdd/install/minio-docker-compose.yaml <<EOF
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
minio1:
|
||||
minio:
|
||||
image: ${harbor_host}/cmii/minio:RELEASE.2023-06-02T23-17-26Z
|
||||
container_name: live-minio
|
||||
ports:
|
||||
- "9000:9000"
|
||||
- "9001:9001"
|
||||
image: '${harbor_host}/cmii/minio:2023.5.4'
|
||||
environment:
|
||||
- MINIO_ROOT_USER=cmii
|
||||
- MINIO_ROOT_PASSWORD=B#923fC7mk
|
||||
command: 'server /data --console-address ":9001"'
|
||||
restart: always
|
||||
environment:
|
||||
MINIO_ACCESS_KEY: cmii
|
||||
MINIO_SECRET_KEY: B#923fC7mk
|
||||
volumes:
|
||||
- ${minio_local_path}:/mnt/data
|
||||
- ${minio_local_path}:/data
|
||||
EOF
|
||||
|
||||
echo "start minio container !"
|
||||
@@ -101,13 +102,13 @@ init_minio(){
|
||||
|
||||
# install_docker_compose
|
||||
|
||||
install_minio
|
||||
#install_minio
|
||||
#
|
||||
#if [[ $(docker inspect -f '{{.State.Running}}' install-minio1-1) -eq "true" ]]; then
|
||||
# echo "minio is running now! start to init minio!"
|
||||
# init_minio
|
||||
#fi
|
||||
|
||||
if [[ $(docker inspect -f '{{.State.Running}}' install-minio1-1) -eq "true" ]]; then
|
||||
echo "minio is running now! start to init minio!"
|
||||
init_minio
|
||||
fi
|
||||
|
||||
#init_minio
|
||||
init_minio
|
||||
|
||||
|
||||
|
||||
@@ -24,6 +24,7 @@ kubectl delete -f k8s-pvc.yaml
|
||||
kubectl apply -f k8s-mongo.yaml
|
||||
kubectl delete -f k8s-mongo.yaml
|
||||
|
||||
vim k8s-emqx.yaml
|
||||
kubectl apply -f k8s-emqx.yaml
|
||||
kubectl delete -f k8s-emqx.yaml
|
||||
|
||||
@@ -43,6 +44,7 @@ kubectl delete -f k8s-nacos.yaml
|
||||
|
||||
---
|
||||
|
||||
vim k8s-configmap.yaml
|
||||
kubectl apply -f k8s-configmap.yaml
|
||||
kubectl delete -f k8s-configmap.yaml
|
||||
|
||||
@@ -61,5 +63,6 @@ kubectl delete -f k8s-backend.yaml
|
||||
|
||||
kubectl -n kube-system get pods -o jsonpath='{.items[*].metadata.name}'
|
||||
|
||||
vi k8s-srs.yaml
|
||||
kubectl apply -f k8s-srs.yaml
|
||||
kubectl delete -f k8s-srs.yaml
|
||||
@@ -5,7 +5,12 @@ kubectl get nodes --show-labels
|
||||
kubectl label nodes 172.31.2.7 uavcloud.env=szgz --overwrite
|
||||
kubectl label nodes 172.31.2.8 uavcloud.env=szgz --overwrite
|
||||
kubectl label nodes 172.31.2.9 uavcloud.env=szgz --overwrite
|
||||
kubectl label nodes 192.168.233.100 uavcloud.affinity=common --overwrite
|
||||
|
||||
|
||||
# 删除label
|
||||
kubectl label nodes 192.168.40.193 uavcloud.env-
|
||||
|
||||
# 获取特定label的节点
|
||||
kubectl get nodes -l uavcloud.affinity=common
|
||||
|
||||
|
||||
@@ -1,33 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
need_to_import_sql_folder="/home/wdd/Documents/master_data_5.2.0"
|
||||
target_host_ip=20.4.13.81
|
||||
target_host_port=33306
|
||||
target_user=root
|
||||
target_passwd=QzfXQhd3bQ
|
||||
|
||||
|
||||
full_back_up_database(){
|
||||
echo "yes"
|
||||
}
|
||||
|
||||
|
||||
batch_import_sql_struct_to_server(){
|
||||
|
||||
for sql_file in $(ls ${need_to_import_sql_folder} | sort -n); do
|
||||
if [ -d $need_to_import_sql_folder/${sql_file} ];then
|
||||
continue
|
||||
fi
|
||||
|
||||
echo "current file is $need_to_import_sql_folder/${sql_file}"
|
||||
|
||||
/root/wdd/mysql/bin/mysql -u${target_user} -p${target_passwd} -h${target_host_ip} -P${target_host_port} <"$need_to_import_sql_folder/${sql_file}"
|
||||
|
||||
echo "------------------"
|
||||
echo ""
|
||||
done
|
||||
}
|
||||
|
||||
batch_import_sql_struct_to_server
|
||||
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
minio_inner_ip_host=10.215.66.89:9000
|
||||
|
||||
download_ts2mp4_file(){
|
||||
echo ""
|
||||
wget https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/ts2mp4_docker_image_v1.tar.gz
|
||||
echo ""
|
||||
echo ""
|
||||
echo ""
|
||||
wget https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/pack_ts2mp4_release-0521.tar.gz
|
||||
}
|
||||
|
||||
bootup_ts2mp4(){
|
||||
if [[ -f ts2mp4_docker_image_v1.tar.gz ]]; then
|
||||
echo "start to load ts2mp4 image file !"
|
||||
docker load -i ts2mp4_docker_image_v1.tar.gz
|
||||
echo ""
|
||||
|
||||
|
||||
echo "init ts2mp4 config!"
|
||||
tar -zvxf pack_ts2mp4_release-0521.tar.gz
|
||||
|
||||
echo "start to modify!"
|
||||
sed -i "s/https:\/\/minio.ig-uat.uavcmlc.com:31500/http:\/\/$minio_inner_ip_host/g" $(pwd)/pack_ts2mp4_release/server_config_docker.ini
|
||||
bash $(pwd)/pack_ts2mp4_release/run_docker.sh
|
||||
|
||||
sleep 3
|
||||
if docker ps | grep -q ts2mp4; then
|
||||
echo "ts2mp4 started successful !"
|
||||
else
|
||||
echo "ts2mp4 FAILED!"
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
#download_ts2mp4_file
|
||||
bootup_ts2mp4
|
||||
Reference in New Issue
Block a user