mirror of
https://github.com/clearlinux/dockerfiles.git
synced 2026-06-29 09:05:52 +00:00
808494bbff
Use postgres instead of postgresql for the image name to align with the Docker official library upstream. Signed-off-by: George T Kramer <george.t.kramer@intel.com>
18 lines
456 B
Docker
18 lines
456 B
Docker
FROM clearlinux:latest
|
|
MAINTAINER william.douglas@intel.com
|
|
|
|
RUN swupd update $swupd_args && \
|
|
swupd bundle-add postgresql $swupd_args
|
|
|
|
ENV PGDATA /var/lib/pgsql/data
|
|
RUN mkdir -p /run/postgresql && chown -R postgres:postgres /run/postgresql
|
|
RUN mkdir -p "$PGDATA" && chown -R postgres:postgres "$PGDATA"
|
|
VOLUME /var/lib/pgsql/data
|
|
|
|
RUN mkdir -p /usr/local/bin
|
|
COPY bootstrap.sh /usr/local/bin
|
|
ENTRYPOINT ["bootstrap.sh"]
|
|
|
|
EXPOSE 5432
|
|
CMD ["postgres"]
|