Commit 57a49437 authored by daidekun's avatar daidekun

Merge branch 'master' of git.quantgroup.cn:QA/qg-dockerfiles

parents 2d41a0e3 22552384
...@@ -20,7 +20,7 @@ done ...@@ -20,7 +20,7 @@ done
export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace` export NAMESPACE=`cat /var/run/secrets/kubernetes.io/serviceaccount/namespace`
echo "cd $WORK_PATH" echo "cd /docker-entrypoint-initdb.d"
cd $WORK_PATH cd /docker-entrypoint-initdb.d
echo "replace DB string" echo "replace DB string"
sh replace.sh 127.0.0.1 3306 qa qatest true $NAMESPACE sh replace.sh 127.0.0.1 3306 qa qatest true $NAMESPACE
\ No newline at end of file
...@@ -13,7 +13,12 @@ NAMESPACE=$6 ...@@ -13,7 +13,12 @@ NAMESPACE=$6
# NAMESPACE=tianyawei # NAMESPACE=tianyawei
DB_FILE=dump.sql DB_FILE=dump.sql
echo "HOST=$1
PORT=$2
USER=$3
PASSWORD=$4
HTTPS=$5
NAMESPACE=$6"
EXCLUDED_TABLES=( EXCLUDED_TABLES=(
clotho.JOB_EXECUTION_LOG clotho.JOB_EXECUTION_LOG
clotho.JOB_STATUS_TRACE_LOG clotho.JOB_STATUS_TRACE_LOG
...@@ -59,5 +64,5 @@ else ...@@ -59,5 +64,5 @@ else
fi fi
echo "mysql dump file" echo "mysql dump file"
mysql --host=${HOST} --${PORT} --user=${USER} --password=${PASSWORD} < ${DB_FILE} mysql --host=${HOST} --port=${PORT} --user=${USER} --password=${PASSWORD} < ${DB_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