Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
k8s
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 42309d4f
authored
Jan 06, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除无用脚本
1 parent
2f676683
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
72 deletions
script/harbor/autodl-workspace-push.sh
script/harbor/harbor_install.sh
script/harbor/push-base-images.sh
script/harbor/autodl-workspace-push.sh
deleted
100755 → 0
View file @
2f67668
#!/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
script/harbor/harbor_install.sh
deleted
100755 → 0
View file @
2f67668
#!/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
script/harbor/push-base-images.sh
deleted
100755 → 0
View file @
2f67668
#!/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
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment