37 lines
1.1 KiB
Bash
37 lines
1.1 KiB
Bash
#!/bin/bash
|
|
|
|
# 下载agent
|
|
wget http://42.192.52.227:9000/octopus/octopus-agent_linux_amd64
|
|
mv ./octopus-agent_linux_amd64 /usr/local/bin/octopus-agent
|
|
chmod +x /usr/local/bin/octopus-agent
|
|
|
|
|
|
# 下载依赖文件
|
|
mkdir /root/wdd/
|
|
cd /root/wdd
|
|
|
|
export oss_url_prefix=https://oss.demo.uavcmlc.com/cmlc-installation/downloadfile/amd
|
|
# export oss_url_prefix=http://42.192.52.227:9000/octopus
|
|
|
|
wget ${oss_url_prefix}/docker-amd64-20.10.15.tgz
|
|
wget ${oss_url_prefix}/docker-compose-linux-x86_64-v2.18.0
|
|
|
|
wget ${oss_url_prefix/harbor-offline-installer-v2.9.0.tgz
|
|
wget ${oss_url_prefix}/rke_linux-amd64
|
|
|
|
wget ${oss_url_prefix}/mysql-8.0.27-linux-glibc2.17-x86_64-minimal.zip
|
|
|
|
|
|
|
|
mc.exe get uav-demo/cmlc-installation/downloadfile/amd/docker-amd64-20.10.15.tgz "D:\CmiiDeployOffline\"
|
|
mc.exe get uav-demo/cmlc-installation/downloadfile/amd/docker-compose-linux-x86_64-v2.18.0 "D:\CmiiDeployOffline\"
|
|
|
|
|
|
mv /root/octopus-agent_linux_amd64 /usr/local/bin/octopus-agent
|
|
chmod +x /usr/local/bin/octopus-agent
|
|
|
|
printf 'help\n' | octopus-agent --mode=bastion
|
|
|
|
file_list=(docker-amd64-20.10.15.tgz harbor-offline-installer-v2.9.0 docker-compose-linux-x86_64-v2.18.0)
|
|
|