Initial commit
This commit is contained in:
commit
156c4d2000
22
Dockerfile
Executable file
22
Dockerfile
Executable file
@ -0,0 +1,22 @@
|
||||
FROM ubuntu:trusty
|
||||
MAINTAINER Dave P
|
||||
|
||||
RUN sed -i -E 's/deb http:\/\/archive.ubuntu.com/deb http:\/\/debmirror.services.davepedu.com:8080/' /etc/apt/sources.list
|
||||
|
||||
# Create rduser (password is rduser)
|
||||
RUN locale-gen en && \
|
||||
apt-get update && \
|
||||
apt-get -y install supervisor && \
|
||||
mkdir /var/run/mysqld && \
|
||||
echo "mariadb-server-5.5 mysql-server/root_password_again password root" | debconf-set-selections && \
|
||||
echo "mariadb-server-5.5 mysql-server/root_password password root" | debconf-set-selections && \
|
||||
apt-get -y install mariadb-server-5.5 mariadb-client-5.5 && \
|
||||
sed -i -E 's/bind-address\s+=.+$/bind-address = 0.0.0.0/' /etc/mysql/my.cnf
|
||||
|
||||
COPY supervisord-mariadb.conf /etc/supervisor/conf.d/mariadb.conf
|
||||
COPY supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||
|
||||
EXPOSE 3306
|
||||
|
||||
ENTRYPOINT ["supervisord"]
|
||||
|
4
supervisord-mariadb.conf
Executable file
4
supervisord-mariadb.conf
Executable file
@ -0,0 +1,4 @@
|
||||
[program:mysql]
|
||||
command=/usr/bin/mysqld_safe
|
||||
autorestart=true
|
||||
|
3
supervisord.conf
Executable file
3
supervisord.conf
Executable file
@ -0,0 +1,3 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
Loading…
x
Reference in New Issue
Block a user