Commit 42309d4f by tingweiwang

删除无用脚本

1 parent 2f676683
#!/bin/bash
#wangtingwei
harbor_host=192.168.1.32:5000
harbor_passwd=admin
image_path=/root/workspace_image
for image in `ls $image_path`
do
echo "开始导入镜像到本地"
#docker load -i $image_path/$image
done
echo "开始给镜像打tag"
image_name=(
autodl/tensorflow:1.8.0-py3
hb.seetatech.com/autodl-workspace/pytorch:cpu-py3-v1.2.0
hb.seetatech.com/autodl-workspace/pytorch:cuda10.0-py3-v1.2.0
hb.seetatech.com/autodl-workspace/pytorch:cpu-py3-v0.4.1
hb.seetatech.com/autodl-workspace/pytorch:cuda9.2-py3-v0.4.1
hb.seetatech.com/autodl-workspace/tensorflow:cpu-py3-v1.5.0
hb.seetatech.com/autodl-workspace/tensorflow:gpu-py3-v1.5.0
hb.seetatech.com/autodl-workspace/tensorflow:cpu-py3-v1.8.0
hb.seetatech.com/autodl-workspace/tensorflow:gpu-py3-v1.8.0
hb.seetatech.com/autodl-workspace/tensorflow:cpu-py3-v1.14.0
hb.seetatech.com/autodl-workspace/tensorflow:gpu-py3-v1.14.0
)
for i in ${image_name[@]}
do
z=`echo $i |awk -F / '{print $3}'`
echo $z
#docker tag $i $harbor_host/autodl-workspace/$z
#docker login $harbor_host -u admin -p $harbor_passwd
#docker push $harbor_host/autodl-workspace/$z
done
#!/bin/bash
harbor_host=192.168.1.32:5000
echo "解压harbor到/usr/local/目录"
tar -xvzf /root/k8s/package/harbor_aly.tar.gz -C /usr/local/
cd /usr/local/harbor/ && sed -i s/harbor_host/$harbor_host/g harbor.cfg && ./prepare && ./install.sh
#!/bin/bash
#wangtingwei
harbor_host=192.168.1.32:5000
harbor_passwd=admin
image_path=/root/k8s/images
for image in `ls $image_path`
do
echo "开始导入镜像到本地"
docker load -i $image_path/$image
done
echo "开始给镜像打tag"
docker tag autodl/image-proxy:v0.9.0 $harbor_host/k8s/image-proxy:v0.9.0
docker tag autodl/ubuntu-basic:16.04 $harbor_host/k8s/ubuntu-basic:16.04
docker tag coredns/coredns:1.5.0 $harbor_host/k8s/coredns:1.5.0
docker tag nvidia/k8s-device-plugin:1.10 $harbor_host/k8s/k8s-device-plugin:1.10
docker tag busybox:1.28.3 $harbor_host/k8s/busybox:1.28.3
docker tag registry.cn-hangzhou.aliyuncs.com/google-containers/pause-amd64:3.0 $harbor_host/k8s/pause-amd64:3.0
docker tag nginx:latest $harbor_host/k8s/nginx:latest
docker tag nvidia/cuda:10.0-base-ubuntu16.04 $harbor_host/k8s/cuda:10.0-base-ubuntu16.04
#docker tag hb.seetatech.com/k8s/operator:xx $harbor_host/k8s/operator:xxx
echo "开始推送镜像到harbor"
docker login $harbor_host -u admin -p $harbor_passwd
docker push $harbor_host/k8s/image-proxy:v0.9.0
docker push $harbor_host/k8s/ubuntu-basic:16.04
docker push $harbor_host/k8s/coredns:1.5.0
docker push $harbor_host/k8s/k8s-device-plugin:1.10
docker push $harbor_host/k8s/busybox:1.28.3
docker push $harbor_host/k8s/pause-amd64:3.0
docker push $harbor_host/k8s/nginx:latest
docker push $harbor_host/k8s/cuda:10.0-base-ubuntu16.04
#docker push $harbor_host/k8s/operator:xxx
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!