summaryrefslogtreecommitdiffstats
path: root/Services/mariadb/Dockerfile
diff options
context:
space:
mode:
authorstartxfr <clarue@startx.fr>2014-11-29 04:11:44 +0100
committerstartxfr <clarue@startx.fr>2014-11-29 04:11:44 +0100
commitde3cd0a17a285afa0dd783ec11024c992f4aa3ff (patch)
tree673c92818acfa12d02f3342b94747d8792586212 /Services/mariadb/Dockerfile
parent6d20210fdecb7dda4181b5a743d104644d5dfbaa (diff)
downloadphpmyadmin-de3cd0a17a285afa0dd783ec11024c992f4aa3ff.tar.gz
phpmyadmin-de3cd0a17a285afa0dd783ec11024c992f4aa3ff.tar.bz2
phpmyadmin-de3cd0a17a285afa0dd783ec11024c992f4aa3ff.tar.xz
phpmyadmin-de3cd0a17a285afa0dd783ec11024c992f4aa3ff.zip
modif pour mise en place avancé de mariadb
Diffstat (limited to 'Services/mariadb/Dockerfile')
-rw-r--r--Services/mariadb/Dockerfile22
1 files changed, 15 insertions, 7 deletions
diff --git a/Services/mariadb/Dockerfile b/Services/mariadb/Dockerfile
index 1bdf0ea..9140c96 100644
--- a/Services/mariadb/Dockerfile
+++ b/Services/mariadb/Dockerfile
@@ -1,22 +1,30 @@
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
-COPY mariadb_run.sh /bin/
+COPY sx/* /sx/
RUN yum -y install \
mariadb-libs \
mariadb-server \
mariadb \
+ \
+ psmisc \
+ \
&& yum clean all \
&& mkdir -p /var/log/mysql \
+ && mkdir -p /sx \
&& touch /var/log/mysql/.keep /var/lib/mysql/.keep \
&& chown -R mysql:mysql /var/log/mysql /var/lib/mysql \
- && chmod ug+rx /bin/mariadb_*
+ && chmod ug+rx /sx/mariadb* \
+ && chown -R mysql:mysql /sx/mariadb*
-VOLUME ["/var/lib/mysql", "/var/log/mysql"]
USER mysql
-
EXPOSE 3306
+VOLUME ["/var/lib/mysql", "/var/log/mysql"]
+
+# if you wan't to set root password, otherwise auto-generated
+# see docker logs <containerId>
+ENV mysql_newadminpwd "newRootPassword"
+
-#CMD ["/usr/libexec/mysqld"]
-CMD ["/bin/mariadb_run.sh"]
-ONBUILD CMD ["/bin/mariadb_run.sh"] \ No newline at end of file
+#ENDPOINT ["/sx/mariadb_run.sh"]
+CMD ["/sx/mariadb_run.sh"] \ No newline at end of file