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
6efd4edc
Commit
6efd4edc
authored
Nov 14, 2017
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加 my.cnf
parent
57ee0526
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
30 additions
and
5 deletions
+30
-5
Dockerfile
baseimg/db/Dockerfile
+2
-1
my.cnf
baseimg/db/my.cnf
+28
-0
0-init_user_and_db.sql
baseimg/db/sql_to_run/0-init_user_and_db.sql
+0
-4
No files found.
baseimg/db/Dockerfile
View file @
6efd4edc
...
...
@@ -13,8 +13,9 @@ ENV AUTO_RUN_DIR /docker-entrypoint-initdb.d
WORKDIR
$WORK_PATH
RUN
mkdir
-p
sql_to_run
COPY
./sql_to_run/0-init_user_and_db.sql ./sql_to_run/
COPY
my.cnf /etc/mysql/my.cnf
COPY
./sql_to_run/0-init_user_and_db.sql ./sql_to_run/
#把要执行的shell文件放到/docker-entrypoint-initdb.d/目录下,容器会自动执行这个shell
COPY
./init_db_data.sh $AUTO_RUN_DIR/
...
...
baseimg/db/my.cnf
0 → 100644
View file @
6efd4edc
# Copyright (c) 2015, 2016, Oracle and/or its affiliates. All rights reserved.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
#
# The MySQL Server configuration file.
#
# For explanations see
# http://dev.mysql.com/doc/mysql/en/server-system-variables.html
# * IMPORTANT: Additional settings that can override those from this file!
# The files must end with '.cnf', otherwise they'll be ignored.
#
!includedir /etc/mysql/conf.d/
!includedir /etc/mysql/mysql.conf.d/
max_connections = 5000
\ No newline at end of file
baseimg/db/sql_to_run/0-init_user_and_db.sql
View file @
6efd4edc
...
...
@@ -79,7 +79,3 @@ flush privileges;
CREATE
DATABASE
merchant
;
GRANT
ALL
PRIVILEGES
ON
*
.
*
TO
'qa'
@
'%'
IDENTIFIED
BY
'qatest'
;
flush
privileges
;
-- 设置最大连接数
SET
GLOBAL
max_connections
=
10000
;
flush
privileges
;
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