Commit 8ec0c956 authored by xuezj's avatar xuezj

增加tke ui脚本

parent 96abe30d
#!/bin/bash
echo "start run ui"
current="/home/quant_group"
echo "current: ${current}"
# 获取当前容器所属的namespace
# todo: k8s部署的时候可以加到env的
export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
echo "NAMESPACE is $NAMESPACE"
echo "NETWORKING=yes" >> /etc/sysconfig/network
# 运行qa工具
host=`curl -s http://172.30.220.22:3003/proconfig/get_host?system_name=${SYSTEM_NAME}`
echo "host: ${host}"
code_path="${current}/code"
echo "code path: ${code_path}"
cd qa-replace;
python replace.py $host $code_path;
echo "/usr/bin/openresty -g 'daemon off;'"
/usr/bin/openresty -g 'daemon off;'
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment