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 3e27b417
authored
Jan 18, 2021
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除冗余配置
1 parent
cf2c9a01
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
22 deletions
script/autodl/2-replace-file.sh
script/autodl/2-replace-file.sh
View file @
3e27b41
...
@@ -10,17 +10,7 @@ deploy_is_private=true # true代表私有部署
...
@@ -10,17 +10,7 @@ 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,其他为空。
custom_source
=
#智源项目改成zhiyuan,其他为空。
autodl_es
=
http://INTRANET_IP:9200
autodl_es
=
http://INTRANET_IP:9200
################seetaas组件变量信息##########################
#seetaas_frontend=http://PUBLIC_IP:30180 #30180
#seetaas_backend=http://PUBLIC_IP:30200 #30200
#seetaas_back_socket=ws://PUBLIC_IP:30200 # 30200 https对应wss
#seetaas_imageproxy=http://PUBLIC_IP:30202 #30202
#seetaas_deploy=http://PUBLIC_IP:30201 #30201
#usercenter_frontend=http://PUBLIC_IP:30302 #30302
#usercenter_backend=http://PUBLIC_IP:30300 #30300
core_nginx
=
http://PUBLIC_IP:30099
#30099
core_nginx
=
http://PUBLIC_IP:30099
#30099
#visit_uc_frontend=PUBLIC_IP #user-center前端的主机ip 或域名
#mobile_frontend=http://PUBLIC_IP:30181 #30181
###############其他依赖服务变量信息#########################################
###############其他依赖服务变量信息#########################################
mysql_host
=
INTRANET_IP:3306
mysql_host
=
INTRANET_IP:3306
mysql_user
=
root
mysql_user
=
root
...
@@ -39,18 +29,7 @@ sudo sed -i s/harbor_host/$harbor_host/g `find $config_workspace -type f -name "
...
@@ -39,18 +29,7 @@ sudo sed -i s/harbor_host/$harbor_host/g `find $config_workspace -type f -name "
sudo sed -i s/hb_host/
$hb_host
/g
`
find
$config_workspace
-type f -name
"*.yaml"
`
sudo sed -i s/hb_host/
$hb_host
/g
`
find
$config_workspace
-type f -name
"*.yaml"
`
sudo sed -i s/redis_password/
$redis_password
/g
`
find
$config_workspace
-type f -name
"*.yaml"
`
sudo sed -i s/redis_password/
$redis_password
/g
`
find
$config_workspace
-type f -name
"*.yaml"
`
sudo sed -i s/mysql_password/
$mysql_password
/g
`
find
$config_workspace
-type f -name
"*.yaml"
`
sudo sed -i s/mysql_password/
$mysql_password
/g
`
find
$config_workspace
-type f -name
"*.yaml"
`
#####################################seetaas修改后端##############################################
#sudo sed -i s#seetaas_deploy#$seetaas_deploy#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#core_nginx#
$core_nginx
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#core_nginx#
$core_nginx
#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#seetaas_frontend#$seetaas_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#visit_uc_frontend#$visit_uc_frontend#g `find $config_workspace -type f -name "*.yaml"`
#############################seetaas修改前端app.yaml#######################################
#sudo sed -i s#seetaas_backend#$seetaas_backend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#usercenter_frontend#$usercenter_frontend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#usercenter_backend#$usercenter_backend#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#seetaas_back_socket#$seetaas_back_socket#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#seetaas_imageproxy#$seetaas_imageproxy#g `find $config_workspace -type f -name "*.yaml"`
#sudo sed -i s#mobile_frontend#$mobile_frontend#g `find $config_workspace -type f -name "*.yaml"`
###############################autodl修改后端app.yaml#############################################
###############################autodl修改后端app.yaml#############################################
sudo sed -i s#autodl_es#
$autodl_es
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#autodl_es#
$autodl_es
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#deploy_is_private#
$deploy_is_private
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#deploy_is_private#
$deploy_is_private
#g `find $config_workspace -type f -name "*.yaml"`
...
@@ -66,7 +45,6 @@ sudo sed -i s#custom_source#$custom_source#g `find $config_workspace -type f -na
...
@@ -66,7 +45,6 @@ sudo sed -i s#custom_source#$custom_source#g `find $config_workspace -type f -na
########################################修改Makefile与########################################################
########################################修改Makefile与########################################################
sudo sed -i s/harbor_host/
$harbor_host
/g
`
find
$workspace
-maxdepth 3 -type f -name Makefile
`
sudo sed -i s/harbor_host/
$harbor_host
/g
`
find
$workspace
-maxdepth 3 -type f -name Makefile
`
cp ~/.docker/config.json
$workspace
/src/autodl-core/conf/
#用于生产环境以及私有部署autodl-core服务向镜像仓库推送镜像所添加的认证文件。
cp ~/.docker/config.json
$workspace
/src/autodl-core/conf/
#用于生产环境以及私有部署autodl-core服务向镜像仓库推送镜像所添加的认证文件。
#cp ~/.docker/config.json $workspace/src/seetaas-backend/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
`
...
...
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