diff --git a/Dockerfile b/Dockerfile index 80d36b7..1694b6a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -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"]