|
@@ -129,7 +129,8 @@ def update():
|
|
|
global success_count, finished_instance_id_list
|
|
|
apps = 'rov-server'
|
|
|
version = sys.argv[1]
|
|
|
- registry = 'registry-vpc.cn-hangzhou.aliyuncs.com/stuuudy/rov-server:{}'.format(version)
|
|
|
+ # registry = 'registry-vpc.cn-hangzhou.aliyuncs.com/stuuudy/rov-server:{}'.format(version)
|
|
|
+ registry = 'registry.piaoquantv.com/piaoquan/rov-server:{}'.format(version)
|
|
|
while not q2.empty():
|
|
|
instance_id = q2.get()
|
|
|
ipadd = getIpadd(instance_id)
|
|
@@ -158,7 +159,8 @@ def update():
|
|
|
|
|
|
try:
|
|
|
# 登录镜像仓库
|
|
|
- client.login(username='stuuudys', password='Qingqu@2019', registry='registry-vpc.cn-hangzhou.aliyuncs.com')
|
|
|
+ # client.login(username='stuuudys', password='Qingqu@2019', registry='registry-vpc.cn-hangzhou.aliyuncs.com')
|
|
|
+ client.login(username='admin', password='Harbor12345', registry='registry.piaoquantv.com')
|
|
|
# 启动一个容器
|
|
|
client.containers.run(registry, detach=True, cap_add='SYS_PTRACE', network_mode='host', name=apps,
|
|
|
volumes={'/datalog/': {'bind': '/datalog/', 'mode': 'rw'}})
|