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
4d8e9c46
Commit
4d8e9c46
authored
Apr 23, 2018
by
kalvin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixbugs
parent
7ed5bd57
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
8 deletions
+0
-8
Dockerfile
baseimg/tools/db5.7/Dockerfile
+0
-8
No files found.
baseimg/tools/db5.7/Dockerfile
View file @
4d8e9c46
...
@@ -8,14 +8,6 @@ ENV AUTO_RUN_DIR /docker-entrypoint-initdb.d
...
@@ -8,14 +8,6 @@ ENV AUTO_RUN_DIR /docker-entrypoint-initdb.d
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
COPY
./init_db_data.sh $AUTO_RUN_DIR/
#给执行文件增加可执行权限
RUN
chmod
a+x
$AUTO_RUN_DIR
/init_db_data.sh
RUN
echo
"dash dash/sh boolean false"
| debconf-set-selections
RUN
DEBIAN_FRONTEND
=
noninteractive dpkg-reconfigure dash
# 解决时区问题
# 解决时区问题
ENV
TZ=Asia/Shanghai
ENV
TZ=Asia/Shanghai
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
RUN
ln
-snf
/usr/share/zoneinfo/
$TZ
/etc/localtime
&&
echo
$TZ
>
/etc/timezone
\ 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