-
Notifications
You must be signed in to change notification settings - Fork 59
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. remove deprecated MAINTAINER instruction 2. update pgbouncer version to 1.12.0
- Loading branch information
Alexander Moiseenko
committed
Jan 8, 2020
1 parent
e49cabf
commit 1fe58c5
Showing
1 changed file
with
10 additions
and
17 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,19 @@ | ||
FROM alpine:latest AS build_stage | ||
|
||
MAINTAINER [email protected] | ||
FROM alpine:3.11.2 AS build_stage | ||
|
||
WORKDIR / | ||
RUN apk --update add git python py-pip build-base automake libtool m4 autoconf libevent-dev openssl-dev c-ares-dev | ||
RUN pip install docutils | ||
RUN git clone --branch pgbouncer_1_9_0 --depth 1 https://github.com/pgbouncer/pgbouncer.git src | ||
RUN apk --update add python py-pip build-base automake libtool m4 autoconf libevent-dev openssl-dev c-ares-dev | ||
RUN pip install docutils \ | ||
&& wget https://github.com/pgbouncer/pgbouncer/releases/download/pgbouncer_1_12_0/pgbouncer-1.12.0.tar.gz \ | ||
&& tar zxf pgbouncer-1.12.0.tar.gz && rm pgbouncer-1.12.0.tar.gz \ | ||
&& cd /pgbouncer-1.12.0/ \ | ||
&& ./configure --prefix=/pgbouncer \ | ||
&& make \ | ||
&& make install | ||
|
||
WORKDIR /bin | ||
RUN ln -s ../usr/bin/rst2man.py rst2man | ||
|
||
WORKDIR /src | ||
RUN mkdir /pgbouncer | ||
RUN git submodule init | ||
RUN git submodule update | ||
RUN ./autogen.sh | ||
RUN ./configure --prefix=/pgbouncer --with-libevent=/usr/lib | ||
RUN make | ||
RUN make install | ||
RUN ls -R /pgbouncer | ||
|
||
FROM alpine:latest | ||
FROM alpine:3.11.2 | ||
RUN apk --update add libevent openssl c-ares | ||
WORKDIR / | ||
COPY --from=build_stage /pgbouncer /pgbouncer | ||
|