-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathDockerfile
More file actions
26 lines (17 loc) · 721 Bytes
/
Dockerfile
File metadata and controls
26 lines (17 loc) · 721 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# CentOS 7 with MySQL
FROM andrefernandes/docker-centos7-base
MAINTAINER Andre Fernandes
RUN groupadd -r mysql && useradd -r -g mysql mysql
# installs from mysql public repo
RUN wget http://dev.mysql.com/get/mysql-community-release-el7-5.noarch.rpm -d && \
yum localinstall mysql-community-release-el7-5.noarch.rpm -y && \
yum install mysql-community-server -y && \
rm mysql-community-release-el7-5.noarch.rpm && \
yum clean all
ENV PATH $PATH:/usr/local/mysql/bin:/usr/local/mysql/scripts
WORKDIR /usr/local/mysql
VOLUME /var/lib/mysql
ADD docker-entrypoint.sh /entrypoint.sh
#ENTRYPOINT ["/entrypoint.sh"]
EXPOSE 3306
CMD ["/entrypoint.sh","mysqld", "--datadir=/var/lib/mysql", "--user=mysql"]