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
35c89e7d
Commit
35c89e7d
authored
Aug 25, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init file
parent
b7e8b7bf
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
39 additions
and
1 deletion
+39
-1
Dockerfile
baseimg/mysql5_6/Dockerfile
+9
-1
db_execute_sql.sh
baseimg/mysql5_6/db_execute_sql.sh
+19
-0
docker-entrypoint.sh
baseimg/mysql5_6/docker-entrypoint.sh
+9
-0
init_user.sql
baseimg/mysql5_6/sql_to_run/init_user.sql
+2
-0
No files found.
baseimg/mysql5_6/Dockerfile
View file @
35c89e7d
...
@@ -19,4 +19,12 @@ RUN apt-get update \
...
@@ -19,4 +19,12 @@ RUN apt-get update \
&&
apt-get
install
-y
vim
\
&&
apt-get
install
-y
vim
\
&&
apt-get
install
-y
telnet
\
&&
apt-get
install
-y
telnet
\
&&
apt-get
install
-y
openssh-server
\
&&
apt-get
install
-y
openssh-server
\
&&
/etc/init.d/ssh start
&&
/etc/init.d/ssh start
\ No newline at end of file
RUN
chmod
+x ./docker-entrypoint.sh
WORKDIR
/home/quant_group/mysql
COPY
./sql_to_run .
COPY
docker-entrypoint.sh .
COPY
db_execute_sql.sh .
CMD
["./docker-entrypoint.sh"]
\ No newline at end of file
baseimg/mysql5_6/db_execute_sql.sh
0 → 100644
View file @
35c89e7d
# -------------------------------------------------------------------------------
# Filename: db_execute_sql.sh
# Revision: 1.0
# Date: 2017/08
# Author: dekun.dai
# Description: 执行目录下所有数据库脚本
# -------------------------------------------------------------------------------
mysql_host
=
$1
sql_file_folder
=
./sql_to_run
echo
"cd
$sql_file_folder
"
cd
$sql_file_folder
for
entry
in
./
*
do
echo
"run sql file:
$entry
"
mysql
-h
$mysql_host
-uroot
-pQuantgroup2017
<
$entry
done
\ No newline at end of file
baseimg/mysql5_6/docker-entrypoint.sh
0 → 100755
View file @
35c89e7d
#!/bin/sh
public_ip
=
"www.q-gp.com"
echo
"java_start java"
module_name
=
"redpacket"
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
baseimg/mysql5_6/sql_to_run/init_user.sql
0 → 100644
View file @
35c89e7d
GRANT
ALL
PRIVILEGES
ON
*
.
*
TO
'qa'
@
'%'
IDENTIFIED
BY
'qatest'
;
flush
privileges
;
\ 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