diff options
author | startxfr <clarue@startx.fr> | 2014-11-29 04:11:44 +0100 |
---|---|---|
committer | startxfr <clarue@startx.fr> | 2014-11-29 04:11:44 +0100 |
commit | de3cd0a17a285afa0dd783ec11024c992f4aa3ff (patch) | |
tree | 673c92818acfa12d02f3342b94747d8792586212 /Services/mariadb/Dockerfile | |
parent | 6d20210fdecb7dda4181b5a743d104644d5dfbaa (diff) | |
download | phpmyadmin-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/Dockerfile | 22 |
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 |