-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDockerfile
More file actions
29 lines (21 loc) · 685 Bytes
/
Copy pathDockerfile
File metadata and controls
29 lines (21 loc) · 685 Bytes
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
FROM centos:centos7
ARG pgpool_link=http://www.pgpool.net/yum/rpms/3.7/redhat/rhel-7-x86_64/pgpool-II-pg96-3.7.3-1pgdg.rhel7.x86_64.rpm
ARG pgpool_rpm=pgpool.rpm
WORKDIR /root
RUN yum update -y \
&& curl $pgpool_link > $pgpool_rpm \
&& yum install -y ${pgpool_rpm}
ENV PGPOOL_USER=pgpool
ENV PGPOOL_HOME=/etc/pgpool-II
ENV PGPOOL_RUN=/var/run/pgpool
ENV PGPOOL_LOG=/var/log/pgpool
RUN mkdir ${PGPOOL_LOG} \
&& adduser --user-group ${PGPOOL_USER} \
&& usermod --home ${PGPOOL_HOME} ${PGPOOL_USER} \
&& chown -R ${PGPOOL_USER} ${PGPOOL_RUN} ${PGPOOL_LOG} ${PGPOOL_HOME}
USER ${PGPOOL_USER}
WORKDIR ${PGPOOL_HOME}
EXPOSE 9999
EXPOSE 9898
#CMD ["pgpool", "-n"]
CMD ["/bin/bash"]