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
5147a5e7
Commit
5147a5e7
authored
Feb 11, 2018
by
daidekun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
3e789bc4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
8 deletions
+2
-8
Dockerfile
baseimg/tools/db/Dockerfile
+2
-8
No files found.
baseimg/tools/db/Dockerfile
View file @
5147a5e7
...
@@ -2,22 +2,16 @@
...
@@ -2,22 +2,16 @@
FROM
mysql:5.6.37
FROM
mysql:5.6.37
#定义工作目录
#定义工作目录
ENV
WORK_PATH /home/quant_group/mysql
WORKDIR
/var/lib/mysql
#定义会被容器自动执行的目录
ENV
AUTO_RUN_DIR /docker-entrypoint-initdb.d
ENV
AUTO_RUN_DIR /docker-entrypoint-initdb.d
WORKDIR
$WORK_PATH
RUN
mkdir
-p
sql_to_run
COPY
my.cnf /etc/mysql/mysql.conf.d/mysqld.cnf
COPY
my.cnf /etc/mysql/mysql.conf.d/mysqld.cnf
COPY
mysqld_charset.cnf /etc/mysql/conf.d/mysqld_charset.cnf
COPY
mysqld_charset.cnf /etc/mysql/conf.d/mysqld_charset.cnf
#把要执行的shell文件放到/docker-entrypoint-initdb.d/目录下,容器会自动执行这个shell
#把要执行的shell文件放到/docker-entrypoint-initdb.d/目录下,容器会自动执行这个shell
COPY
./init_db_data.sh $AUTO_RUN_DIR/
COPY
./init_db_data.sh $AUTO_RUN_DIR/
#给执行文件增加可执行权限
#给执行文件增加可执行权限
RUN
chmod
a+x
$AUTO_RUN_DIR
/init_db_data.sh
RUN
chmod
a+x
$AUTO_RUN_DIR
/init_db_data.sh
RUN
echo
"dash dash/sh boolean false"
| debconf-set-selections
RUN
echo
"dash dash/sh boolean false"
| debconf-set-selections
RUN
DEBIAN_FRONTEND
=
noninteractive dpkg-reconfigure dash
RUN
DEBIAN_FRONTEND
=
noninteractive dpkg-reconfigure dash
\ 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