blob: 0f2a61776769450614a6a68ff0a508863e366297 (
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 yum -y install postgresql postgresql-libs postgresql-server \
&& yum 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"]
|