Commit aa326a14 authored by daidekun's avatar daidekun

根据namespace动态替换域名

parent 8ba3092e
......@@ -4,6 +4,9 @@ module_name=project
package_path="./${module_name}/app.jar"
config_path="./${module_name}/application.properties"
namespace=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
sed -i \"s/.xyqb.com/-${namespace}.q-gp.com/\" ${config_path}
echo "java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${package_path} --worker 1 --currentWorker 1 -t --server.port=80 --spring.config.location=${config_path}"
java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/${module_name}_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar ${package_path} --worker 1 --currentWorker 1 -t --server.port=80 --spring.config.location=${config_path}
......
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