Commit ad60cbde by tingweiwang

Update 2-replace-file.sh

1 parent 3e27b417
Showing with 1 additions and 1 deletions
...@@ -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`
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!