Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qg-dockerfiles
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
QA
qg-dockerfiles
Commits
57a49437
Commit
57a49437
authored
Feb 11, 2018
by
daidekun
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of git.quantgroup.cn:QA/qg-dockerfiles
parents
2d41a0e3
22552384
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
4 deletions
+9
-4
init_db_data.sh
baseimg/tools/db/init_db_data.sh
+2
-2
replace.sh
baseimg/tools/db/replace.sh
+7
-2
No files found.
baseimg/tools/db/init_db_data.sh
View file @
57a49437
...
@@ -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
baseimg/tools/db/replace.sh
View file @
57a49437
...
@@ -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
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment