Created
March 22, 2019 03:44
-
-
Save arshpreetsingh/765c323b1fc8c895a352d47265484d3f to your computer and use it in GitHub Desktop.
Db with PGBouncer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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