Skip to content

Instantly share code, notes, and snippets.

@jberkus
Created April 21, 2017 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jberkus/0547beeb9c2713d7d8c67796a0eb2492 to your computer and use it in GitHub Desktop.
Save jberkus/0547beeb9c2713d7d8c67796a0eb2492 to your computer and use it in GitHub Desktop.
FROM fedora:25
MAINTAINER Josh Berkus "josh@agliodbs.com"
LABEL Usage="docker run -d -P --tmpfs /run --tmpfs /tmp -v /sys/fs/cgroup:/sys/fs/cgroup pgadmin4"
ENV container=oci
# install packages
RUN dnf install -y https://download.postgresql.org/pub/repos/yum/9.6/fedora/fedora-25-x86_64/pgdg-fedora96-9.6-3.noarch.rpm && \
dnf -y install openssl && \
dnf -y install pgadmin4-v1-web httpd && \
dnf clean all
# copy over httpd.conf and start webserver
COPY pgadmin-web.conf /etc/httpd/conf.d/pgadmin-web.conf
RUN systemctl enable pgadmin4-v1 \
&& systemctl enable httpd
STOPSIGNAL SIGRTMIN+3
EXPOSE 80
# this is a systemd container, so use init
CMD [ "/sbin/init" ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment