blob: 2af22b138321c4c4253ff33fa04a008423626166 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
FROM startx/fedora
MAINTAINER Christophe LARUE <dev@startx.fr>
RUN dnf -y install postgresql postgresql-libs postgresql-server \
&& dnf clean all \
&& mkdir -p /var/log/pgsql /var/lib/pgsql \
&& touch /var/log/pgsql/.keep /var/lib/pgsql/.keep \
&& chown -R postgres:postgres /var/log/pgsql /var/lib/pgsql
# Copy startx toolkit
COPY sx/* /sx/
COPY postgresql.conf /var/lib/pgsql/postgresql.conf
RUN chmod ug+rx /sx/postgres* \
&& chown -R postgres:postgres /sx/postgresql*
USER postgres
EXPOSE 5432
VOLUME ["/var/log/pgsql", "/var/lib/pgsql"]
CMD ["/sx/postgresql_run.sh"]
|