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
e07551f7
Commit
e07551f7
authored
Aug 25, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
f1fd6d3f
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
9 deletions
+4
-9
Dockerfile
baseimg/mysql5_6/Dockerfile
+2
-1
db_execute_sql.sh
baseimg/mysql5_6/db_execute_sql.sh
+1
-2
docker-entrypoint.sh
baseimg/mysql5_6/docker-entrypoint.sh
+1
-6
No files found.
baseimg/mysql5_6/Dockerfile
View file @
e07551f7
...
@@ -22,7 +22,8 @@ RUN apt-get update \
...
@@ -22,7 +22,8 @@ RUN apt-get update \
&&
/etc/init.d/ssh start
&&
/etc/init.d/ssh start
WORKDIR
/home/quant_group/mysql
WORKDIR
/home/quant_group/mysql
COPY
./sql_to_run .
RUN
mkdir
sql_to_run
COPY
./sql_to_run/* ./sql_to_run
COPY
docker-entrypoint.sh .
COPY
docker-entrypoint.sh .
COPY
db_execute_sql.sh .
COPY
db_execute_sql.sh .
...
...
baseimg/mysql5_6/db_execute_sql.sh
View file @
e07551f7
...
@@ -6,7 +6,6 @@
...
@@ -6,7 +6,6 @@
# Description: 执行目录下所有数据库脚本
# Description: 执行目录下所有数据库脚本
# -------------------------------------------------------------------------------
# -------------------------------------------------------------------------------
mysql_host
=
$1
sql_file_folder
=
./sql_to_run
sql_file_folder
=
./sql_to_run
echo
"cd
$sql_file_folder
"
echo
"cd
$sql_file_folder
"
...
@@ -15,5 +14,5 @@ cd $sql_file_folder
...
@@ -15,5 +14,5 @@ cd $sql_file_folder
for
entry
in
./
*
for
entry
in
./
*
do
do
echo
"run sql file:
$entry
"
echo
"run sql file:
$entry
"
mysql
-
h
$mysql_host
-
uroot
-pQuantgroup2017
<
$entry
mysql
-uroot
-pQuantgroup2017
<
$entry
done
done
\ No newline at end of file
baseimg/mysql5_6/docker-entrypoint.sh
View file @
e07551f7
#!/bin/sh
#!/bin/sh
public_ip
=
"www.q-gp.com"
public_ip
=
"www.q-gp.com"
echo
"java_start java"
sh ./db_execute_sql
module_name
=
"redpacket"
\ No newline at end of file
package_path
=
"./redpacket/redpacket-0.0.1-master-SNAPSHOT.jar"
echo
"java -Xmx512m -XX:PermSize64m -Xloggc:/tmp/
${
module_name
}
_gc.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -jar
${
package_path
}
--worker 1 --currentWorker 1 -t > /dev/null 2>&1"
java
-Xmx512m
-XX
:PermSize64m
-Xloggc
:/tmp/
${
module_name
}
_gc.log
-XX
:+PrintGCDetails
-XX
:+PrintGCTimeStamps
-jar
${
package_path
}
--worker
1
--currentWorker
1
-t
>
/dev/null 2>&1
\ No newline at end of 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