reduce images and donwload parallel

This commit is contained in:
chendile 2023-04-06 22:54:23 +08:00
parent 2c1688c2b3
commit c7095763ea
3 changed files with 88 additions and 109 deletions

View File

@ -1,70 +1,71 @@
# 所需要的所有镜像
kubeflow = [
'mysql:5.7',
'bitnami/redis:4.0.14',
'metacontroller/metacontroller:v0.3.0',
'mysql:5.7', # 数据库
'bitnami/redis:4.0.14', # 缓存
'alpine:3.10',
"busybox",
"ccr.ccs.tencentyun.com/cube-studio/kubeflow:training-operator",
'ccr.ccs.tencentyun.com/cube-studio/spark-operator:v1beta2-1.3.7-3.1.1',
"ccr.ccs.tencentyun.com/cube-studio/kubeflow:training-operator", # 分布式训练
'ccr.ccs.tencentyun.com/cube-studio/spark-operator:v1beta2-1.3.7-3.1.1', # spark serverless
]
kubernetes_dashboard=['kubernetesui/dashboard:v2.2.0','kubernetesui/metrics-scraper:v1.0.6','quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.30.0']
new_pipline = [
'gcr.io/ml-pipeline/api-server:1.6.0',
'gcr.io/ml-pipeline/viewer-crd-controller:1.6.0',
'gcr.io/ml-pipeline/minio:RELEASE.2019-08-14T20-37-41Z-license-compliance',
'gcr.io/ml-pipeline/workflow-controller:v2.12.9-license-compliance',
'gcr.io/ml-pipeline/frontend:1.6.0',
'gcr.io/ml-pipeline/scheduledworkflow:1.6.0',
'gcr.io/ml-pipeline/persistenceagent:1.6.0',
'gcr.io/ml-pipeline/visualization-server:1.6.0',
'gcr.io/ml-pipeline/metadata-envoy:1.6.0',
'gcr.io/ml-pipeline/metadata-writer:1.6.0',
'gcr.io/tfx-oss-public/ml_metadata_store_server:0.30.0',
"gcr.io/ml-pipeline/argoexec:v2.7.5-license-compliance",
"gcr.io/ml-pipeline/argoexec:v2.12.9-license-compliance"
kubernetes_dashboard = [
'kubernetesui/dashboard:v2.2.0', # k8s dashboard
'kubernetesui/metrics-scraper:v1.0.6', # k8s dashboard 上的指标监控
]
new_gpu = ['nvidia/k8s-device-plugin:v0.7.1','nvidia/dcgm-exporter:2.3.1-2.6.1-ubuntu20.04',
'nvidia/pod-gpu-metrics-exporter:v1.0.0-alpha']
new_gpu = [
'nvidia/k8s-device-plugin:v0.7.1', # gpu k8s插件
'nvidia/dcgm-exporter:2.3.1-2.6.1-ubuntu20.04', # gpu监控
'tkestack/gpu-manager:1.0.3'
]
new_prometheus = [
'quay.io/prometheus/alertmanager:v0.15.0',
'quay.io/prometheus-operator/prometheus-config-reloader:v0.46.0',
'quay.io/prometheus-operator/prometheus-config-reloader:v0.48.0',
'quay.io/prometheus-operator/prometheus-config-reloader:v0.56.1',
'quay.io/prometheus/prometheus:v2.3.1',
"quay.io/prometheus/prometheus:v2.27.1",
'quay.io/coreos/kube-state-metrics:v1.3.1',
'quay.io/prometheus/node-exporter:v0.15.2',
'quay.io/coreos/kube-rbac-proxy:v0.3.1',
'quay.io/coreos/addon-resizer:1.0',
"quay.io/prometheus-operator/prometheus-operator:v0.46.0",
'quay.io/prometheus-operator/prometheus-operator:v0.56.1',
"k8s.gcr.io/prometheus-adapter/prometheus-adapter:v0.9.1",
'grafana/grafana:9.1.5'
'quay.io/prometheus/alertmanager:v0.15.0', # 报警
'quay.io/prometheus-operator/prometheus-config-reloader:v0.46.0', # prometheus配置翻译
"quay.io/prometheus/prometheus:v2.27.1", # peomethues数据库
'quay.io/coreos/kube-state-metrics:v1.3.1', # 状态 指标
'quay.io/prometheus/node-exporter:v0.15.2', # 机器指标
'quay.io/coreos/kube-rbac-proxy:v0.3.1', # 指标
'quay.io/coreos/addon-resizer:1.0', # 指标
"quay.io/prometheus-operator/prometheus-operator:v0.46.0", # prometheus 部署工具
"k8s.gcr.io/prometheus-adapter/prometheus-adapter:v0.9.1", # peometheus指标翻译为自定义指标
'grafana/grafana:9.1.5' # 监控看板
]
istio=[
"istio/proxyv2:1.14.1","istio/pilot:1.14.1"
istio = [
"istio/proxyv2:1.14.1", # ingressgateway
"istio/pilot:1.14.1" # 数据面
]
volcano = [
'volcanosh/vc-controller-manager:v1.4.0', # 控制器
'volcanosh/vc-scheduler:v1.4.0', # 调度器
'volcanosh/vc-webhook-manager:v1.4.0' # 拦截器
]
volcano = ['volcanosh/vc-controller-manager:v1.4.0', 'volcanosh/vc-scheduler:v1.4.0',
'volcanosh/vc-webhook-manager:v1.4.0']
kube_batch = ['kubesigs/kube-batch:v0.5']
nni = ['frameworkcontroller/frameworkcontroller']
nni = [
'frameworkcontroller/frameworkcontroller' # 超参搜索
]
pipeline = [
'minio/minio',
'quay.io/argoproj/argoexec:v3.4.3',
'quay.io/argoproj/workflow-controller:latest',
'quay.io/argoproj/workflow-controller:v3.4.3',
'quay.io/argoproj/argocli:latest'
]
cube_studio = [
# 平台构建的镜像
# notebook基础镜像
'ccr.ccs.tencentyun.com/cube-studio/notebook:vscode-ubuntu-cpu-base',
'ccr.ccs.tencentyun.com/cube-studio/notebook:vscode-ubuntu-gpu-base',
'ccr.ccs.tencentyun.com/cube-studio/notebook:jupyter-ubuntu-cpu-base',
'ccr.ccs.tencentyun.com/cube-studio/notebook:jupyter-ubuntu-gpu-base',
'ccr.ccs.tencentyun.com/cube-studio/notebook:jupyter-ubuntu-cpu-1.0.0',
'ccr.ccs.tencentyun.com/cube-studio/notebook:jupyter-ubuntu-bigdata',
'ccr.ccs.tencentyun.com/cube-studio/notebook:jupyter-ubuntu-machinelearning',
'ccr.ccs.tencentyun.com/cube-studio/notebook:jupyter-ubuntu-deeplearning',
# 超参搜索的镜像
'ccr.ccs.tencentyun.com/cube-studio/nni:20211003',
# 推理服务的镜像
'ccr.ccs.tencentyun.com/cube-studio/tfserving:1.14.0',
'ccr.ccs.tencentyun.com/cube-studio/tfserving:1.14.0-gpu',
'ccr.ccs.tencentyun.com/cube-studio/tfserving:2.0.0',
@ -114,8 +115,8 @@ cube_studio = [
"ccr.ccs.tencentyun.com/cube-studio/volcano:offline-predict-20220101",
"ccr.ccs.tencentyun.com/cube-studio/object_detection_on_darknet:v1",
"ccr.ccs.tencentyun.com/cube-studio/deploy-service:20211001"
# 用户可能使用的镜像
# 用户可能使用的基础镜像
'ccr.ccs.tencentyun.com/cube-studio/ubuntu-gpu:cuda11.0.3-cudnn8',
'ccr.ccs.tencentyun.com/cube-studio/ubuntu-gpu:cuda11.0.3-cudnn8-python3.7',
'ccr.ccs.tencentyun.com/cube-studio/ubuntu-gpu:cuda11.0.3-cudnn8-python3.8',
@ -136,33 +137,28 @@ cube_studio = [
'ccr.ccs.tencentyun.com/cube-studio/ubuntu-gpu:cuda9.1-cudnn7-python3.8',
]
# images = kubeflow + kubernetes_dashboard + new_pipline + new_gpu + new_prometheus + istio+ volcano + kube_batch + nni+ cube_studio
images = kubeflow + kubernetes_dashboard + new_pipline + new_gpu + new_prometheus + istio + volcano + nni
# images = kubeflow + kubernetes_dashboard + new_gpu + new_prometheus + istio+ volcano + nni+ pipeline+cube_studio
images = kubeflow + kubernetes_dashboard + new_gpu + new_prometheus + istio + volcano + nni + pipeline
images = list(set(images))
# 通过私有仓库将公有镜像下发到内网每台机器上例如内网docker.oa.com的仓库
HOST = 'ccr.ccs.tencentyun.com/cube-studio/'
for image in images:
# print(image)
if 'gpu' in image:
continue
# print(image)
image = image.replace('<none>', '')
image_name = HOST + image.replace(HOST,'').replace('/', '-').replace('@sha256', '')
image_name = HOST + image.replace(HOST, '').replace('/', '-').replace('@sha256', '')
# 可联网机器上拉取公有镜像并推送到私有仓库
# print('docker pull %s' % image)
# print('docker tag %s %s' % (image, image_name))
# print('docker push %s' % (image_name))
# print('docker pull %s && docker tag %s %s && docker push %s &' % (image,image,image_name,image_name))
# 内网机器上拉取私有仓库镜像
# # # 内网机器上拉取私有仓库镜像
# image=image.replace('@sha256','')
# print("docker pull %s" % image_name)
# print("docker tag %s %s"%(image_name,image))
image=image.replace('@sha256','')
print("docker pull %s && docker tag %s %s &" % (image_name,image_name,image))
# print("docker pull %s && docker tag %s %s &" % (image_name,image_name,image))
# # 拉取公有镜像
image = image.replace('@sha256', '')
print("docker pull %s &" % (image,))
print('')
print('wait')

View File

@ -1,47 +1,33 @@
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-visualization-server:1.6.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-visualization-server:1.6.0 gcr.io/ml-pipeline/visualization-server:1.6.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-tfx-oss-public-ml_metadata_store_server:0.30.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-tfx-oss-public-ml_metadata_store_server:0.30.0 gcr.io/tfx-oss-public/ml_metadata_store_server:0.30.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-addon-resizer:1.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-addon-resizer:1.0 quay.io/coreos/addon-resizer:1.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-alertmanager:v0.15.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-alertmanager:v0.15.0 quay.io/prometheus/alertmanager:v0.15.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/kubeflow:training-operator && docker tag ccr.ccs.tencentyun.com/cube-studio/kubeflow:training-operator ccr.ccs.tencentyun.com/cube-studio/kubeflow:training-operator &
docker pull ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-controller-manager:v1.4.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-controller-manager:v1.4.0 volcanosh/vc-controller-manager:v1.4.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/alpine:3.10 && docker tag ccr.ccs.tencentyun.com/cube-studio/alpine:3.10 alpine:3.10 &
docker pull ccr.ccs.tencentyun.com/cube-studio/istio-pilot:1.14.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/istio-pilot:1.14.1 istio/pilot:1.14.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-operator:v0.56.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-operator:v0.56.1 quay.io/prometheus-operator/prometheus-operator:v0.56.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-config-reloader:v0.48.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-config-reloader:v0.48.0 quay.io/prometheus-operator/prometheus-config-reloader:v0.48.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-workflow-controller:v2.12.9-license-compliance && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-workflow-controller:v2.12.9-license-compliance gcr.io/ml-pipeline/workflow-controller:v2.12.9-license-compliance &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-viewer-crd-controller:1.6.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-viewer-crd-controller:1.6.0 gcr.io/ml-pipeline/viewer-crd-controller:1.6.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/grafana-grafana:9.1.5 && docker tag ccr.ccs.tencentyun.com/cube-studio/grafana-grafana:9.1.5 grafana/grafana:9.1.5 &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-persistenceagent:1.6.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-persistenceagent:1.6.0 gcr.io/ml-pipeline/persistenceagent:1.6.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/kubernetesui-metrics-scraper:v1.0.6 && docker tag ccr.ccs.tencentyun.com/cube-studio/kubernetesui-metrics-scraper:v1.0.6 kubernetesui/metrics-scraper:v1.0.6 &
docker pull ccr.ccs.tencentyun.com/cube-studio/nvidia-k8s-device-plugin:v0.7.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/nvidia-k8s-device-plugin:v0.7.1 nvidia/k8s-device-plugin:v0.7.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-metadata-envoy:1.6.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-metadata-envoy:1.6.0 gcr.io/ml-pipeline/metadata-envoy:1.6.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-webhook-manager:v1.4.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-webhook-manager:v1.4.0 volcanosh/vc-webhook-manager:v1.4.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/spark-operator:v1beta2-1.3.7-3.1.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/spark-operator:v1beta2-1.3.7-3.1.1 ccr.ccs.tencentyun.com/cube-studio/spark-operator:v1beta2-1.3.7-3.1.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/bitnami-redis:4.0.14 && docker tag ccr.ccs.tencentyun.com/cube-studio/bitnami-redis:4.0.14 bitnami/redis:4.0.14 &
docker pull ccr.ccs.tencentyun.com/cube-studio/mysql:5.7 && docker tag ccr.ccs.tencentyun.com/cube-studio/mysql:5.7 mysql:5.7 &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-argoexec:v2.7.5-license-compliance && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-argoexec:v2.7.5-license-compliance gcr.io/ml-pipeline/argoexec:v2.7.5-license-compliance &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-minio:RELEASE.2019-08-14T20-37-41Z-license-compliance && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-minio:RELEASE.2019-08-14T20-37-41Z-license-compliance gcr.io/ml-pipeline/minio:RELEASE.2019-08-14T20-37-41Z-license-compliance &
docker pull ccr.ccs.tencentyun.com/cube-studio/k8s.gcr.io-prometheus-adapter-prometheus-adapter:v0.9.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/k8s.gcr.io-prometheus-adapter-prometheus-adapter:v0.9.1 k8s.gcr.io/prometheus-adapter/prometheus-adapter:v0.9.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-metadata-writer:1.6.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-metadata-writer:1.6.0 gcr.io/ml-pipeline/metadata-writer:1.6.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-scheduledworkflow:1.6.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-scheduledworkflow:1.6.0 gcr.io/ml-pipeline/scheduledworkflow:1.6.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-kube-rbac-proxy:v0.3.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-kube-rbac-proxy:v0.3.1 quay.io/coreos/kube-rbac-proxy:v0.3.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-frontend:1.6.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-frontend:1.6.0 gcr.io/ml-pipeline/frontend:1.6.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/busybox && docker tag ccr.ccs.tencentyun.com/cube-studio/busybox busybox &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-argoexec:v2.12.9-license-compliance && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-argoexec:v2.12.9-license-compliance gcr.io/ml-pipeline/argoexec:v2.12.9-license-compliance &
docker pull ccr.ccs.tencentyun.com/cube-studio/kubeflow:training-operator && docker tag ccr.ccs.tencentyun.com/cube-studio/kubeflow:training-operator ccr.ccs.tencentyun.com/cube-studio/kubeflow:training-operator &
docker pull ccr.ccs.tencentyun.com/cube-studio/istio-pilot:1.14.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/istio-pilot:1.14.1 istio/pilot:1.14.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-webhook-manager:v1.4.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-webhook-manager:v1.4.0 volcanosh/vc-webhook-manager:v1.4.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/nvidia-k8s-device-plugin:v0.7.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/nvidia-k8s-device-plugin:v0.7.1 nvidia/k8s-device-plugin:v0.7.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/nvidia-dcgm-exporter:2.3.1-2.6.1-ubuntu20.04 && docker tag ccr.ccs.tencentyun.com/cube-studio/nvidia-dcgm-exporter:2.3.1-2.6.1-ubuntu20.04 nvidia/dcgm-exporter:2.3.1-2.6.1-ubuntu20.04 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-config-reloader:v0.56.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-config-reloader:v0.56.1 quay.io/prometheus-operator/prometheus-config-reloader:v0.56.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-prometheus:v2.3.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-prometheus:v2.3.1 quay.io/prometheus/prometheus:v2.3.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/kubernetesui-dashboard:v2.2.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/kubernetesui-dashboard:v2.2.0 kubernetesui/dashboard:v2.2.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-kube-state-metrics:v1.3.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-kube-state-metrics:v1.3.1 quay.io/coreos/kube-state-metrics:v1.3.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-node-exporter:v0.15.2 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-node-exporter:v0.15.2 quay.io/prometheus/node-exporter:v0.15.2 &
docker pull ccr.ccs.tencentyun.com/cube-studio/istio-proxyv2:1.14.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/istio-proxyv2:1.14.1 istio/proxyv2:1.14.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/frameworkcontroller-frameworkcontroller && docker tag ccr.ccs.tencentyun.com/cube-studio/frameworkcontroller-frameworkcontroller frameworkcontroller/frameworkcontroller &
docker pull ccr.ccs.tencentyun.com/cube-studio/metacontroller-metacontroller:v0.3.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/metacontroller-metacontroller:v0.3.0 metacontroller/metacontroller:v0.3.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-scheduler:v1.4.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-scheduler:v1.4.0 volcanosh/vc-scheduler:v1.4.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-operator:v0.46.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-operator:v0.46.0 quay.io/prometheus-operator/prometheus-operator:v0.46.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-api-server:1.6.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/gcr.io-ml-pipeline-api-server:1.6.0 gcr.io/ml-pipeline/api-server:1.6.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-prometheus:v2.27.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-prometheus:v2.27.1 quay.io/prometheus/prometheus:v2.27.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-argoproj-argoexec:v3.4.3 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-argoproj-argoexec:v3.4.3 quay.io/argoproj/argoexec:v3.4.3 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-alertmanager:v0.15.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-alertmanager:v0.15.0 quay.io/prometheus/alertmanager:v0.15.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-argoproj-workflow-controller:v3.4.3 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-argoproj-workflow-controller:v3.4.3 quay.io/argoproj/workflow-controller:v3.4.3 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-addon-resizer:1.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-addon-resizer:1.0 quay.io/coreos/addon-resizer:1.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/spark-operator:v1beta2-1.3.7-3.1.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/spark-operator:v1beta2-1.3.7-3.1.1 ccr.ccs.tencentyun.com/cube-studio/spark-operator:v1beta2-1.3.7-3.1.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/kubernetesui-dashboard:v2.2.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/kubernetesui-dashboard:v2.2.0 kubernetesui/dashboard:v2.2.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-kube-rbac-proxy:v0.3.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-coreos-kube-rbac-proxy:v0.3.1 quay.io/coreos/kube-rbac-proxy:v0.3.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-config-reloader:v0.46.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-config-reloader:v0.46.0 quay.io/prometheus-operator/prometheus-config-reloader:v0.46.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-kubernetes-ingress-controller-nginx-ingress-controller:0.30.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-kubernetes-ingress-controller-nginx-ingress-controller:0.30.0 quay.io/kubernetes-ingress-controller/nginx-ingress-controller:0.30.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/grafana-grafana:9.1.5 && docker tag ccr.ccs.tencentyun.com/cube-studio/grafana-grafana:9.1.5 grafana/grafana:9.1.5 &
docker pull ccr.ccs.tencentyun.com/cube-studio/alpine:3.10 && docker tag ccr.ccs.tencentyun.com/cube-studio/alpine:3.10 alpine:3.10 &
docker pull ccr.ccs.tencentyun.com/cube-studio/istio-proxyv2:1.14.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/istio-proxyv2:1.14.1 istio/proxyv2:1.14.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/k8s.gcr.io-prometheus-adapter-prometheus-adapter:v0.9.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/k8s.gcr.io-prometheus-adapter-prometheus-adapter:v0.9.1 k8s.gcr.io/prometheus-adapter/prometheus-adapter:v0.9.1 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-operator:v0.46.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-operator-prometheus-operator:v0.46.0 quay.io/prometheus-operator/prometheus-operator:v0.46.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-argoproj-workflow-controller:latest && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-argoproj-workflow-controller:latest quay.io/argoproj/workflow-controller:latest &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-argoproj-argocli:latest && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-argoproj-argocli:latest quay.io/argoproj/argocli:latest &
docker pull ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-scheduler:v1.4.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-scheduler:v1.4.0 volcanosh/vc-scheduler:v1.4.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-controller-manager:v1.4.0 && docker tag ccr.ccs.tencentyun.com/cube-studio/volcanosh-vc-controller-manager:v1.4.0 volcanosh/vc-controller-manager:v1.4.0 &
docker pull ccr.ccs.tencentyun.com/cube-studio/kubernetesui-metrics-scraper:v1.0.6 && docker tag ccr.ccs.tencentyun.com/cube-studio/kubernetesui-metrics-scraper:v1.0.6 kubernetesui/metrics-scraper:v1.0.6 &
docker pull ccr.ccs.tencentyun.com/cube-studio/minio-minio && docker tag ccr.ccs.tencentyun.com/cube-studio/minio-minio minio/minio &
docker pull ccr.ccs.tencentyun.com/cube-studio/mysql:5.7 && docker tag ccr.ccs.tencentyun.com/cube-studio/mysql:5.7 mysql:5.7 &
docker pull ccr.ccs.tencentyun.com/cube-studio/busybox && docker tag ccr.ccs.tencentyun.com/cube-studio/busybox busybox &
docker pull ccr.ccs.tencentyun.com/cube-studio/frameworkcontroller-frameworkcontroller && docker tag ccr.ccs.tencentyun.com/cube-studio/frameworkcontroller-frameworkcontroller frameworkcontroller/frameworkcontroller &
docker pull ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-prometheus:v2.27.1 && docker tag ccr.ccs.tencentyun.com/cube-studio/quay.io-prometheus-prometheus:v2.27.1 quay.io/prometheus/prometheus:v2.27.1 &
wait

View File

@ -180,16 +180,13 @@ for image in images:
image_name = HOST + image.replace(HOST,'').replace('/', '-').replace('@sha256', '')
# 可联网机器上拉取公有镜像并推送到私有仓库
# print('docker pull %s' % image)
# print('docker tag %s %s' % (image, image_name))
# print('docker push %s' % (image_name))
# print('docker pull %s && docker tag %s %s && docker push %s &' % (image,image,image_name,image_name))
# # # # 内网机器上拉取私有仓库镜像
# # # 内网机器上拉取私有仓库镜像
# image=image.replace('@sha256','')
# print("docker pull %s && docker tag %s %s &" % (image_name,image_name,image))
# # print("docker tag %s %s"%(image_name,image))
# # # 拉取公有镜像
# # 拉取公有镜像
image=image.replace('@sha256','')
print("docker pull %s &" % (image,))