Commit ed9caa7c authored by xuezj's avatar xuezj

log

parent ef47cdb5
...@@ -7,20 +7,18 @@ echo "current: ${current}" ...@@ -7,20 +7,18 @@ echo "current: ${current}"
# 获取当前容器所属的namespace # 获取当前容器所属的namespace
# todo: k8s部署的时候可以加到env的 # todo: k8s部署的时候可以加到env的
export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace` # export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
echo "NAMESPACE is $NAMESPACE" echo "NAMESPACE is $NAMESPACE"
echo "NETWORKING=yes" >> /etc/sysconfig/network # echo "NETWORKING=yes" >> /etc/sysconfig/network
# 运行qa工具 # 运行qa工具
echo "SYSTEM_NAME is $SYSTEM_NAME" echo "SYSTEM_NAME is $SYSTEM_NAME"
host=`curl -s http://172.30.220.22:3003/proconfig/get_host?system_name=${SYSTEM_NAME}` host=`curl -s http://172.30.220.22:3003/proconfig/get_host?system_name=${SYSTEM_NAME}`
echo "host: ${host}" echo "host: ${host}"
code_path="${current}/code" curl -sSL http://git.q-gp.com/QA/config_repository/raw/master/yaml/replace.py -o replace.py
echo "code path: ${code_path}" curl -sSL http://git.q-gp.com/QA/config_repository/raw/master/yaml/replace_config.yaml -o replace_config.yaml
python replace.py $host;
cd qa-replace;
python replace.py $host $code_path;
echo "/usr/bin/openresty -g 'daemon off;'" echo "/usr/bin/openresty -g 'daemon off;'"
/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