diff options
author | startxfr <clarue@startx.fr> | 2014-12-05 19:19:40 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2014-12-05 19:19:40 +0100 |
commit | 33c861af09aa7a8758716b16c12b7085c2c6283a (patch) | |
tree | c3b131a34b1d953b69e2b8a78e573296f5e63c89 /Services/mariadb/Dockerfile | |
parent | de3cd0a17a285afa0dd783ec11024c992f4aa3ff (diff) | |
download | phpmyadmin-33c861af09aa7a8758716b16c12b7085c2c6283a.tar.gz phpmyadmin-33c861af09aa7a8758716b16c12b7085c2c6283a.tar.bz2 phpmyadmin-33c861af09aa7a8758716b16c12b7085c2c6283a.tar.xz phpmyadmin-33c861af09aa7a8758716b16c12b7085c2c6283a.zip |
fin des modifications sur le template mariadb
Diffstat (limited to 'Services/mariadb/Dockerfile')
-rw-r--r-- | Services/mariadb/Dockerfile | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/Services/mariadb/Dockerfile b/Services/mariadb/Dockerfile index 9140c96..eaead31 100644 --- a/Services/mariadb/Dockerfile +++ b/Services/mariadb/Dockerfile @@ -1,29 +1,28 @@ FROM startx/fedora MAINTAINER Christophe LARUE <dev@startx.fr> -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 /sx/mariadb* \ - && chown -R mysql:mysql /sx/mariadb* + && mkdir -p /tmp/sql +COPY sx/* /sx/ +COPY *.sql /tmp/sql/ +RUN chmod ug+rx /sx/mariadb* /tmp/sql \ + && chown -R mysql:mysql /sx/mariadb* /tmp/sql -USER mysql EXPOSE 3306 VOLUME ["/var/lib/mysql", "/var/log/mysql"] +USER mysql # if you wan't to set root password, otherwise auto-generated # see docker logs <containerId> -ENV mysql_newadminpwd "newRootPassword" +ENV mysql_newadminpwd newRootPassword #ENDPOINT ["/sx/mariadb_run.sh"] |