Skip to content

Commit

Permalink
Add haberdasher to the image.
Browse files Browse the repository at this point in the history
  • Loading branch information
Katherine Black authored and Katherine Black committed May 11, 2021
1 parent bdf22de commit dc84592
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
FROM registry.access.redhat.com/ubi8/ubi-minimal:8.3

RUN rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm \
&& microdnf update \
&& microdnf install pgbouncer \
&& rm -rf /etc/pgbouncer/{pgbouncer.ini,userlist.txt} \
&& touch /etc/pgbouncer/{pgbouncer.ini,userlist.txt} \
&& chmod 777 /etc/pgbouncer/{pgbouncer.ini,userlist.txt} \
&& chmod 777 /var/{run,log}/pgbouncer
&& microdnf update \
&& microdnf install pgbouncer \
&& rm -rf /etc/pgbouncer/{pgbouncer.ini,userlist.txt} \
&& touch /etc/pgbouncer/{pgbouncer.ini,userlist.txt} \
&& chmod 777 /etc/pgbouncer/{pgbouncer.ini,userlist.txt} \
&& chmod 777 /var/{run,log}/pgbouncer \
&& curl -L -o /usr/bin/haberdasher https://github.com/RedHatInsights/haberdasher/releases/latest/download/haberdasher_linux_amd64 \
&& chmod 755 /usr/bin/haberdasher

ADD entrypoint.sh /entrypoint.sh

EXPOSE 5432

ENTRYPOINT ["/entrypoint.sh"]
CMD ["/usr/bin/pgbouncer", "/etc/pgbouncer/pgbouncer.ini"]
ENTRYPOINT ["/usr/bin/haberdasher"]
CMD ["/entrypoint.sh", "/usr/bin/pgbouncer", "/etc/pgbouncer/pgbouncer.ini"]

0 comments on commit dc84592

Please sign in to comment.