Skip to content

Instantly share code, notes, and snippets.

@arshpreetsingh
Created March 22, 2019 03:44
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 arshpreetsingh/765c323b1fc8c895a352d47265484d3f to your computer and use it in GitHub Desktop.
Save arshpreetsingh/765c323b1fc8c895a352d47265484d3f to your computer and use it in GitHub Desktop.
Db with PGBouncer
FROM gliderlabs/alpine:3.3
RUN \
apk --update add autoconf autoconf-doc automake c-ares c-ares-dev curl gcc libc-dev libevent libevent-dev libtool make man openssl-dev pkgconfig && \
curl -o /tmp/pgbouncer-1.9.0.tar.gz -L https://pgbouncer.github.io/downloads/files/1.9.0/pgbouncer-1.9.0.tar.gz && \
cd /tmp && \
tar xvfz /tmp/pgbouncer-1.9.0.tar.gz && \
cd pgbouncer-1.9.0 && \
./configure --prefix=/usr && \
make && \
cp pgbouncer /usr/bin && \
mkdir -p /etc/pgbouncer /var/log/pgbouncer /var/run/pgbouncer && \
adduser -D -S pgbouncer && \
chown -R pgbouncer /var/run/pgbouncer /var/log/pgbouncer /etc/pgbouncer/ && \
cd /tmp && \
rm -rf /tmp/pgbouncer* && \
apk del --purge autoconf autoconf-doc automake c-ares-dev curl gcc libc-dev libevent-dev libtool make man openssl-dev pkgconfig
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment