-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (28 loc) · 878 Bytes
/
Dockerfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
FROM ubuntu:latest
MAINTAINER Boyan Botev <[email protected]>
RUN apt-get update && apt-get install -y \
libmemcached-dev \
libpq-dev
RUN apt-get install -y vim sudo git \
&& mkdir -p /usr/src/pgpool \
&& cd /usr/src/ \
&& git clone https://github.com/pgpool/pgpool2.git pgpool \
&& apt-get install -y gettext \
bison \
flex \
gcc \
libc-dev \
make \
&& cd /usr/src/pgpool \
&& git checkout V3_2_2 \
&& ./configure
# && ./configure --with-memcached=/usr/include/libmemcached-1.0
RUN cd /usr/src/pgpool && make && make install
COPY pgpool.conf /usr/local/etc/pgpool.conf.mod
COPY entrypoint.sh /usr/local/bin/entrypoint.sh
RUN mkdir -p /var/log/pgpool && \
mkdir -p /var/run/pgpool && \
mkdir -p /var/run/postgresql && \
chmod 755 /usr/local/bin/entrypoint.sh
EXPOSE 5432
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"]