From a699d0d06feeb1859efea16dd6b3df17901a1bc5 Mon Sep 17 00:00:00 2001 From: startxfr Date: Thu, 20 Nov 2014 03:17:46 +0100 Subject: modif des services et ajout de memcache, apache et nodejs --- Services/mariadb/Dockerfile | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 Services/mariadb/Dockerfile (limited to 'Services/mariadb/Dockerfile') diff --git a/Services/mariadb/Dockerfile b/Services/mariadb/Dockerfile new file mode 100644 index 0000000..b354a0e --- /dev/null +++ b/Services/mariadb/Dockerfile @@ -0,0 +1,22 @@ +FROM startx/fedora +MAINTAINER Chistophe LARUE + +COPY mariadb_run.sh /bin/ +RUN yum -y install \ + mariadb-libs \ + mariadb-server \ + mariadb \ + && yum clean all \ + && mkdir -p /var/log/mysql \ + && touch /var/log/mysql/.keep /var/lib/mysql/.keep \ + && chown -R mysql:mysql /var/log/mysql /var/lib/mysql \ + && chmod ug+rx /bin/mariadb_* + +VOLUME ["/var/lib/mysql", "/var/log/mysql"] +USER mysql + +EXPOSE 3306 + +#CMD ["/usr/libexec/mysqld"] +CMD ["/bin/mariadb_run.sh"] +ONBUILD CMD ["/bin/mariadb_run.sh"] \ No newline at end of file -- cgit v1.2.3