Commit 3e27b417 by tingweiwang

删除冗余配置

1 parent cf2c9a01
Showing with 0 additions and 22 deletions
......@@ -10,17 +10,7 @@ deploy_is_private=true # true代表私有部署
autodl_admin_back_socket=ws://PUBLIC_IP:30092 # 30092
custom_source= #智源项目改成zhiyuan,其他为空。
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
#visit_uc_frontend=PUBLIC_IP #user-center前端的主机ip 或域名
#mobile_frontend=http://PUBLIC_IP:30181 #30181
###############其他依赖服务变量信息#########################################
mysql_host=INTRANET_IP:3306
mysql_user=root
......@@ -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/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"`
#####################################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#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#############################################
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"`
......@@ -66,7 +45,6 @@ sudo sed -i s#custom_source#$custom_source#g `find $config_workspace -type f -na
########################################修改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/seetaas-backend/conf/ #用于生产环境以及私有部署autodl-core服务向镜像仓库推送镜像所添加的认证文件。
##################################修改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/image-proxy:v0.9.2#$harbor_host/k8s/image-proxy:v0.9.2#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!