Commit 5318bd25 authored by kalvin's avatar kalvin

修改所有entrypoints

parent 984d310a
#!/bin/bash #!/bin/bash
echo "java_start" echo "start run java"
module_name=project module_name=project
package_path="`pwd`/${module_name}/app.jar" package_path="`pwd`/${module_name}/app.jar"
config_path="`pwd`/${module_name}/application.properties" config_path="`pwd`/${module_name}/application.properties"
......
env = dev
idc = k8s
\ No newline at end of file
worker_processes 1;
events {
worker_connections 1024;
}
http {
include /usr/local/openresty/nginx/conf/mime.types;
default_type application/octet-stream;
log_format access '$remote_addr - $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" '
'"$http_user_agent" $http_x_forwarded_for '
'"$upstream_addr" "$upstream_status" "$upstream_response_time" "$request_time" "$http_cookie"';
error_log /var/log/nginx/error.log warn;
access_log /var/log/nginx/access.log;
server_names_hash_bucket_size 64;
sendfile on;
keepalive_timeout 65;
include /usr/local/openresty/nginx/conf/conf.d/*.conf;
}
\ No newline at end of file
#!/bin/sh #!/bin/sh
echo "deploy openresty" echo "start run lua-ui"
package_path="/home/quant_group" package_path="/home/quant_group"
echo "cd ${package_path}" echo "cd ${package_path}"
...@@ -28,7 +28,6 @@ cd /home/qg-xterm/;git pull;cd - ...@@ -28,7 +28,6 @@ cd /home/qg-xterm/;git pull;cd -
source ~/.bash_profile source ~/.bash_profile
echo "sed xyqb.com to q-gp.com" echo "sed xyqb.com to q-gp.com"
# find ${package_path}/ -name "*.js" | xargs sed -i "s/.xyqb.com/-$NAMESPACE.q-gp.com/g"
find ${package_path}/ -name "*.js" | xargs sed -i "s#.domain.com#-$NAMESPACE.q-gp.com#g" find ${package_path}/ -name "*.js" | xargs sed -i "s#.domain.com#-$NAMESPACE.q-gp.com#g"
sed -i "s/xterm.js demo/${SYSTEM_NAME}@${NAMESPACE}/" /home/qg-xterm/demo/index.html sed -i "s/xterm.js demo/${SYSTEM_NAME}@${NAMESPACE}/" /home/qg-xterm/demo/index.html
......
...@@ -12,7 +12,7 @@ echo "sed sed xyqb.com to q-gp.com" ...@@ -12,7 +12,7 @@ echo "sed sed xyqb.com to q-gp.com"
namespace=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace` namespace=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
echo "namespace is $namespace" echo "namespace is $namespace"
echo 172.30.5.214 ldap.quantgroups.com >> /etc/hosts echo 192.168.3.2 ldap.quantgroups.com >> /etc/hosts
# find ${package_path}/ -type f -name "*.js" | xargs sed -i "s/.xyqb.com/-$namespace.q-gp.com/g" # find ${package_path}/ -type f -name "*.js" | xargs sed -i "s/.xyqb.com/-$namespace.q-gp.com/g"
find ${package_path}/ -type f -name "*.js" | xargs sed -i "s#.domain.com#-$namespace.q-gp.com#g" find ${package_path}/ -type f -name "*.js" | xargs sed -i "s#.domain.com#-$namespace.q-gp.com#g"
......
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