删除多个不再使用的配置文件和脚本,更新工作区配置,优化构建和上传脚本,增强项目结构的清晰度和可维护性。
This commit is contained in:
42
agent-wdd/a_run/agent-wdd-config.yaml
Normal file
42
agent-wdd/a_run/agent-wdd-config.yaml
Normal file
@@ -0,0 +1,42 @@
|
||||
|
||||
timestamp: 2025-02-10 15:19:30
|
||||
|
||||
agent:
|
||||
hostname: Shanghai-amd64-01
|
||||
network:
|
||||
# 2代表能上外网 1代表能上国内网 0代表无法访问网络
|
||||
internet: 2
|
||||
# 服务器公网信息
|
||||
public:
|
||||
ipv4: 42.192.52.227
|
||||
ipv6: xxx
|
||||
country: CN
|
||||
city: Shanghai
|
||||
asn: Oracle
|
||||
interfaces:
|
||||
- name: eth0
|
||||
ipv4: 192.168.233.5
|
||||
mac: asdasdasd
|
||||
cpu:
|
||||
cores: 4
|
||||
brand: Intel Xeon Gold 5118
|
||||
mhz: 2400
|
||||
mem:
|
||||
size: 4G
|
||||
type: ddr4
|
||||
speed: 2400
|
||||
swap:
|
||||
on: false
|
||||
size: 2G
|
||||
disk:
|
||||
- path: /
|
||||
size: 50G
|
||||
usage: 12G
|
||||
percent: 12/50
|
||||
vg: ubuntuvg
|
||||
lv: datalv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -8,20 +8,25 @@ set HTTPS_PROXY=http://127.0.0.1:7899
|
||||
# mc.exe ls oracle-osaka-1/osaka
|
||||
|
||||
# 设置 韩国oss
|
||||
mc.exe alias set oracle-seoul-2 https://cncvl8ro2rbf.compat.objectstorage.ap-seoul-1.oraclecloud.com 9e413c6e66269bc65d7ec951d93ba9c6a9781f6e dkXD7PysjrhsTKfNIbKupUmtxdfOvYCyLXf0MXa4hnU=
|
||||
mc.exe ls oracle-seoul-2/seoul-2
|
||||
#mc.exe alias set oracle-seoul-2 https://cncvl8ro2rbf.compat.objectstorage.ap-seoul-1.oraclecloud.com 9e413c6e66269bc65d7ec951d93ba9c6a9781f6e dkXD7PysjrhsTKfNIbKupUmtxdfOvYCyLXf0MXa4hnU=
|
||||
#mc.exe ls oracle-seoul-2/seoul-2
|
||||
|
||||
# 重新build项目
|
||||
Set-Location "C:\Users\wddsh\Documents\IdeaProjects\WddSuperAgent\agent-wdd\"
|
||||
& "C:\Users\wddsh\go\bin\gox.exe" -osarch="linux/amd64" -output "../build/agent-wdd_{{.OS}}_{{.Arch}}"
|
||||
Set-Location "C:\\Users\\wddsh\\Documents\\IdeaProjects\\WddSuperAgent\\agent-wdd\"
|
||||
& "C:\Users\wddsh\go\bin\gox.exe" -osarch="linux/amd64" -output "./build/agent-wdd_{{.OS}}_{{.Arch}}"
|
||||
Set-Location "C:\Users\wddsh\Documents\IdeaProjects\WddSuperAgent\agent-wdd\a_run"
|
||||
Write-Host "build项目成功"
|
||||
Write-Host ""
|
||||
|
||||
# 删除上面存在的旧的内容
|
||||
mc.exe rm oracle-seoul-2/seoul-2/agent-wdd_linux_amd64
|
||||
|
||||
Write-Host "删除旧的内容成功"
|
||||
Write-Host ""
|
||||
|
||||
# 上传文件
|
||||
mc.exe cp C:\Users\wddsh\Documents\IdeaProjects\WddSuperAgent\agent-wdd\a_run\build\agent-wdd_linux_amd64 oracle-seoul-2/seoul-2/
|
||||
mc.exe cp C:\Users\wddsh\Documents\IdeaProjects\WddSuperAgent\agent-wdd\build\agent-wdd_linux_amd64 oracle-seoul-2/seoul-2/
|
||||
Write-Host "上传文件成功"
|
||||
Write-Host ""
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user