forked from julien-duponchelle/python-mysql-replication
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
33 lines (21 loc) · 777 Bytes
/
Dockerfile
File metadata and controls
33 lines (21 loc) · 777 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
26
27
28
29
30
31
32
33
#
# Install MySQL 5.5 & Python for tests
#
FROM ubuntu:12.10
RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y python python-pip
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y wget
#Allow installation of mysqld
RUN dpkg-divert --local --rename --add /sbin/initctl
RUN ln -s /bin/true /sbin/initctl
RUN DEBIAN_FRONTEND=noninteractive apt-get install libaio1
RUN wget http://cdn.mysql.com/Downloads/MySQL-5.6/mysql-5.6.12-debian6.0-x86_64.deb
RUN dpkg -i mysql-5.6.12-debian6.0-x86_64.deb
ADD docker/mysql5.6/my.cnf /etc/my.cnf
RUN mkdir /var/log/mysql/
RUN /opt/mysql/server-5.6/scripts/mysql_install_db --user=root
RUN apt-get clean -y
RUN pip install pymysql
ADD docker/mysql5.6/run.sh /run.sh
ADD . /src
CMD ["/bin/bash", "/run.sh"]