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 ad60cbde
authored
Jan 18, 2021
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update 2-replace-file.sh
1 parent
3e27b417
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
script/autodl/2-replace-file.sh
script/autodl/2-replace-file.sh
View file @
ad60cbd
...
@@ -47,6 +47,6 @@ sudo sed -i s/harbor_host/$harbor_host/g `find $workspace -maxdepth 3 -type f -
...
@@ -47,6 +47,6 @@ sudo sed -i s/harbor_host/$harbor_host/g `find $workspace -maxdepth 3 -type f -
cp ~/.docker/config.json
$workspace
/src/autodl-core/conf/
#用于生产环境以及私有部署autodl-core服务向镜像仓库推送镜像所添加的认证文件。
cp ~/.docker/config.json
$workspace
/src/autodl-core/conf/
#用于生产环境以及私有部署autodl-core服务向镜像仓库推送镜像所添加的认证文件。
##################################修改Dockerfile#######################################################
##################################修改Dockerfile#######################################################
sed -i s#hub.kce.ksyun.com/kpl_k8s/ubuntu-basic:16.04#
$harbor_host
/k8s/ubuntu-basic:16.04#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
sed -i s#hub.kce.ksyun.com/kpl_k8s/ubuntu-basic:16.04#
$harbor_host
/k8s/ubuntu-basic:16.04#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
sed -i s#hub.kce.ksyun.com/kpl_k8s/image-proxy:v0.9.2#
$harbor_host
/k8s/image-proxy:v0.9.2#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
#
sed -i s#hub.kce.ksyun.com/kpl_k8s/image-proxy:v0.9.2#$harbor_host/k8s/image-proxy:v0.9.2#g `find $workspace -maxdepth 5 -name Dockerfile -type f`
sed -i s#hub.kce.ksyun.com/kpl_k8s/nginx:latest#
$harbor_host
/k8s/nginx:latest#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
sed -i s#hub.kce.ksyun.com/kpl_k8s/nginx:latest#
$harbor_host
/k8s/nginx:latest#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
sed -i s#hub.kce.ksyun.com/kpl_k8s/cuda:10.0-base-ubuntu16.04#
$harbor_host
/k8s/cuda:10.0-base-ubuntu16.04#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
sed -i s#hub.kce.ksyun.com/kpl_k8s/cuda:10.0-base-ubuntu16.04#
$harbor_host
/k8s/cuda:10.0-base-ubuntu16.04#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
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