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 e7169dad
authored
Feb 26, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
添加custom_source变量
1 parent
27919c29
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
script/autodl/2-replace-file.sh
script/autodl/2-replace-file.sh
View file @
e7169da
...
@@ -10,6 +10,7 @@ autodl_file=http://PUBLIC_IP:30093 #30093
...
@@ -10,6 +10,7 @@ autodl_file=http://PUBLIC_IP:30093 #30093
autodl_admin_backend
=
http://PUBLIC_IP:30092
# 30092
autodl_admin_backend
=
http://PUBLIC_IP:30092
# 30092
deploy_is_private
=
true
# true代表私有部署
deploy_is_private
=
true
# true代表私有部署
autodl_admin_back_socket
=
ws://PUBLIC_IP:30092
# 30092
autodl_admin_back_socket
=
ws://PUBLIC_IP:30092
# 30092
custom_source
=
#智源项目改成zhiyuan,其他为空。
###############其他依赖服务变量信息#########################################
###############其他依赖服务变量信息#########################################
autodl_es
=
http://INTRANET_IP:9200
autodl_es
=
http://INTRANET_IP:9200
mysql_host
=
INTRANET_IP:3306
mysql_host
=
INTRANET_IP:3306
...
@@ -45,8 +46,7 @@ sudo sed -i s#autodl_back_socket#$autodl_back_socket#g `find $workspace -type f
...
@@ -45,8 +46,7 @@ sudo sed -i s#autodl_back_socket#$autodl_back_socket#g `find $workspace -type f
sudo sed -i s#autodl_file#
$autodl_file
#g `find $workspace -type f -name production-base.js`
sudo sed -i s#autodl_file#
$autodl_file
#g `find $workspace -type f -name production-base.js`
sudo sed -i s#autodl_admin_backend#
$autodl_admin_backend
#g `find $workspace -type f -name production-base.js`
sudo sed -i s#autodl_admin_backend#
$autodl_admin_backend
#g `find $workspace -type f -name production-base.js`
sudo sed -i s#autodl_admin_back_socket#
$autodl_admin_back_socket
#g `find $workspace -type f -name production-base.js`
sudo sed -i s#autodl_admin_back_socket#
$autodl_admin_back_socket
#g `find $workspace -type f -name production-base.js`
sudo sed -i s#custom_source#
$custom_source
#g `find $workspace -type f -name production-base.js`
##################################修改Dockerfile#######################################################
##################################修改Dockerfile#######################################################
sed -i s#hb.seetatech.com/k8s/ubuntu-basic:16.04#
$harbor_host
/k8s/ubuntu-basic:16.04#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
sed -i s#hb.seetatech.com/k8s/ubuntu-basic:16.04#
$harbor_host
/k8s/ubuntu-basic:16.04#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
sed -i s#hb.seetatech.com/k8s/image-proxy:v0.9.0#
$harbor_host
/k8s/image-proxy:v0.9.0#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
sed -i s#hb.seetatech.com/k8s/image-proxy:v0.9.0#
$harbor_host
/k8s/image-proxy:v0.9.0#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