Commit 31c4493c authored by kalvin's avatar kalvin

echo 192.168.4.3 git.q-gp.com >> /etc/hosts

parent ebce4543
......@@ -114,6 +114,7 @@ else
echo 192.168.6.13 eos.quantgroups.com >> /etc/hosts
echo 192.168.4.117 apollo-dev.quantgroups.com >> /etc/hosts
echo 172.20.3.11 sentry.quantgroups.com >> /etc/hosts
echo 192.168.4.3 git.q-gp.com >> /etc/hosts
echo "sed domain from xyqb.com to liangkebang.com"
sed -i "s#.xyqb.com#-$NAMESPACE.liangkebang.com#g" ${config_path}
......
......@@ -12,6 +12,8 @@ export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
echo "NAMESPACE is $NAMESPACE"
echo "NETWORKING=yes" >> /etc/sysconfig/network
echo 192.168.4.3 git.q-gp.com >> /etc/hosts
for entry in ./*tgz
do
with_ext=$(basename "$entry")
......
......@@ -5,6 +5,10 @@ package_path="/home/quant_group/project"
echo "cd ${package_path}"
cd ${package_path}
echo "echo host"
echo 192.168.6.13 eos.quantgroups.com >> /etc/hosts
echo 192.168.4.3 git.q-gp.com >> /etc/hosts
echo "replaceGitRemote"
replaceGitRemote(){
originDomain="192.168.3.60"
......@@ -41,9 +45,6 @@ echo "sed sed xyqb.com to liangkebang.com"
namespace=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
echo "namespace is $namespace"
echo 192.168.6.13 eos.quantgroups.com >> /etc/hosts
# find ${package_path}/ -type f -name "*.js" | xargs sed -i "s/.xyqb.com/-$namespace.liangkebang.com/g"
find ${package_path}/ -type f -name "*.js" | xargs sed -i "s#.domain.com#-$namespace.liangkebang.com#g"
......
......@@ -3,6 +3,8 @@ echo "deploy xyqp-query"
package_path="/home/quant_group/project"
echo "replaceGitRemote"
echo 192.168.4.3 git.q-gp.com >> /etc/hosts
replaceGitRemote(){
originDomain="192.168.3.60"
activeDomain="git.q-gp.com"
......
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