很多修改
This commit is contained in:
12
998-常用脚本/git/git设置代理.sh
Normal file
12
998-常用脚本/git/git设置代理.sh
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
|
||||
|
||||
git config --global --get http.proxy
|
||||
git config --global --get https.proxy
|
||||
|
||||
|
||||
git config --global http.proxy http://localhost:7897
|
||||
git config --global https.proxy http://localhost:7897
|
||||
|
||||
git config --global --unset http.proxy
|
||||
git config --global --unset https.proxy
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
namespace=uavcloud-demo
|
||||
namespace=sdejpt
|
||||
|
||||
install_yq() {
|
||||
wget https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/yq_linux_amd64 -O /usr/local/bin/yq
|
||||
@@ -43,7 +43,7 @@ backup_all_stateful_sets() {
|
||||
echo ""
|
||||
}
|
||||
|
||||
install_yq
|
||||
# install_yq
|
||||
backup_all_deployment
|
||||
backup_all_service
|
||||
backup_all_stateful_sets
|
||||
|
||||
@@ -5,7 +5,7 @@ wget https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd/jq-linux-am
|
||||
chmod +x /usr/local/bin/jq
|
||||
|
||||
|
||||
export name_space=uavcloud-devflight
|
||||
export name_space=xmyd
|
||||
|
||||
kubectl delete pods -n $name_space --field-selector status.phase!=Running --force
|
||||
|
||||
|
||||
@@ -11,6 +11,8 @@ umount /dev/mapper/iovg-lvdata
|
||||
umount /dev/mapper/rootvg-lvtmp
|
||||
umount /dev/mapper/rootvg-lvswap
|
||||
|
||||
umount /dev/mapper/centos-swap
|
||||
|
||||
lvdisplay
|
||||
|
||||
lvremove /dev/iovg/lvhome
|
||||
@@ -21,6 +23,7 @@ lvremove /dev/rootvg/lvtmp
|
||||
|
||||
|
||||
lvremove /dev/openeuler/swap
|
||||
lvremove /dev/centos/swap
|
||||
lvremove /dev/openeuler/tmp
|
||||
|
||||
|
||||
8
998-常用脚本/研发环境相关DEMO/申请SSL证书.sh
Normal file
8
998-常用脚本/研发环境相关DEMO/申请SSL证书.sh
Normal file
@@ -0,0 +1,8 @@
|
||||
#!/bin/bash
|
||||
|
||||
acme.sh --issue --dns dns_ali --force --dnssleep 2 -k ec-256 -d lab.uavcmlc.com
|
||||
|
||||
acme.sh --install-cert -d lab.uavcmlc.com --ecc \
|
||||
--key-file /etc/nginx/conf.d/ssl_key/lab.uavcmlc.key.pem \
|
||||
--fullchain-file /etc/nginx/conf.d/ssl_key/lab.uavcmlc.cert.pem \
|
||||
--reloadcmd "systemctl restart nginx --force"
|
||||
@@ -14,22 +14,22 @@ server {
|
||||
proxy_buffering off;
|
||||
proxy_buffer_size 4k;
|
||||
proxy_buffers 4 12k;
|
||||
proxy_set_header Host fake-domain.sdejpt.io;
|
||||
proxy_set_header Host fake-domain.gsyd-app.io;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header Upgrade $http_upgrade;
|
||||
proxy_set_header Connection "upgrade";
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
}
|
||||
|
||||
location /_AMapService/v4/map/styles {
|
||||
set $args "$args&jscode=cf66cea95bdcdfcf8048456b36f357a1";
|
||||
proxy_pass https://webapi.amap.com/v4/ap/styles;
|
||||
}
|
||||
# location /_AMapService/v4/map/styles {
|
||||
# set $args "$args&jscode=cf66cea95bdcdfcf8048456b36f357a1";
|
||||
# proxy_pass https://webapi.amap.com/v4/ap/styles;
|
||||
# }
|
||||
|
||||
location /_AMapService/ {
|
||||
set $args "$args&jscode=cf66cea95bdcdfcf8048456b36f357a1";
|
||||
proxy_pass https://restapi.amap.com/;
|
||||
}
|
||||
# location /_AMapService/ {
|
||||
# set $args "$args&jscode=cf66cea95bdcdfcf8048456b36f357a1";
|
||||
# proxy_pass https://restapi.amap.com/;
|
||||
# }
|
||||
|
||||
location /rtc/v1/ {
|
||||
add_header Access-Control-Allow-Headers X-Requested-With;
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
minio_inner_ip_host=134.80.124.15:9000
|
||||
minio_inner_ip_host=10.215.66.89:9000
|
||||
|
||||
download_ts2mp4_file(){
|
||||
echo ""
|
||||
@@ -19,7 +19,7 @@ bootup_ts2mp4(){
|
||||
|
||||
|
||||
echo "init ts2mp4 config!"
|
||||
tar -zvxf pack_ts2mp4_x64-0724.tar.gz
|
||||
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
|
||||
|
||||
17
998-常用脚本/镜像同步/imageSyncDownload.ps1
Normal file
17
998-常用脚本/镜像同步/imageSyncDownload.ps1
Normal file
@@ -0,0 +1,17 @@
|
||||
# 指定文件路径
|
||||
$filePath = "D:\CmiiDeployOffline\ZheJiangErJiPingTai\all-gzip-image-list.txt"
|
||||
# 指定下载的目标目录
|
||||
$destinationFolder = "D:\CmiiDeployOffline\ZheJiangErJiPingTai"
|
||||
|
||||
# 创建目标目录(如果不存在)
|
||||
if (-not (Test-Path $destinationFolder)) {
|
||||
New-Item -ItemType Directory -Path $destinationFolder
|
||||
}
|
||||
|
||||
# 读取文件并下载每一行的 URL
|
||||
Get-Content $filePath | ForEach-Object {
|
||||
$url = $_
|
||||
Write-Output $url
|
||||
# $fileName = Join-Path $destinationFolder (Split-Path $url -Leaf)
|
||||
# Invoke-WebRequest -Uri $url -OutFile $fileName
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
#!/bin/bash
|
||||
|
||||
harbor_host=10.40.51.5:8033
|
||||
namespace=ynejpt
|
||||
namespace=zygazww
|
||||
app_name=""
|
||||
new_tag=""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user