blob: 7997d9d306f0f91835a5a486595ef15df92e532b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
FROM startx/fedora
MAINTAINER Chistophe LARUE <dev@startx.fr>
COPY postgres_run.sh postgres_modify_pass.sh /bin/
RUN yum -y install \
mariadb-galera-common \
mariadb-galera-server \
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/postgres_*
VOLUME ["/etc/postgresql", "/var/log/postgresql", "/var/lib/postgresql"]
USER postgresql
EXPOSE 5432
#CMD ["/usr/libexec/pgsqld"]
CMD ["/bin/postgres_run.sh"]
ONBUILD CMD ["/bin/postgres_run.sh"]
|