Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
tingweiwang
/
ksy-project-docking
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 8dafd032
authored
Dec 23, 2020
by
tingweiwang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update sed-config.sh
1 parent
ead15d9c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
13 deletions
sed-configmap/sed-config.sh
sed-configmap/sed-config.sh
View file @
8dafd03
...
...
@@ -13,7 +13,8 @@ iot_boolean=false
grafana_boolean
=
false
notebook_grafana_url_string
=
node_grafana_url_string
=
mqtt_host
=
#192.168.1.32:1883
mqtt_host
=
#iot server连接的内部mqtt地址192.168.1.32:1883
mqtt_client_host
=
#暴露给客户端访问的外部地址
#use_fake_metric_string=CPU,GPU
###############其他依赖服务变量信息#########################################
mysql_host
=
192.168.1.32:3306
...
...
@@ -50,6 +51,7 @@ sudo sed -i s#kpl_stream#$kpl_stream#g `find $config_workspace -type f -name "*.
########################功能开关#######################################
sudo sed -i s#iot_boolean#
$iot_boolean
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#mqtt_host#
$mqtt_host
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#mqtt_client_host#
$mqtt_client_host
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#grafana_boolean#
$grafana_boolean
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#notebook_grafana_url_string#
$notebook_grafana_url_string
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#node_grafana_url_string#
$node_grafana_url_string
#g `find $config_workspace -type f -name "*.yaml"`
...
...
@@ -57,18 +59,9 @@ sudo sed -i s#node_grafana_url_string#$node_grafana_url_string#g `find $config_w
###################################################################################################
sudo sed -i s#kpl_service_id#
$kpl_service_id
#g `find $config_workspace -type f -name "*.yaml"`
sudo sed -i s#kpl_realy_path#
$kpl_realy_path
#g `find $config_workspace -type f -name "*.yaml"`
########################################修改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
`
sed -i s#hub.kce.ksyun.com/kpl_k8s/nginx:latest#
$harbor_host
/k8s/nginx#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/core_gpu_base:cuda-10.0-base-neuware-mlu270-1.3.0-ubuntu18.04#
$harbor_host
/k8s/core_gpu_base:cuda-10.0-base-neuware-mlu270-1.3.0-ubuntu18.04#g
`
find
$workspace
-maxdepth 5 -name Dockerfile -type f
`
###################################修改launcher部署的harbor_host模板#######################################
sed -i s#harbor_host#
$harbor_host
#g $workspace/src/kpl-launcher/deploy.sh
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