JD
Size: a a a
JD
A
A
A
A
A
JD
JD
V
V
s0
HA
s0
V
s0
HA
FROM postgres:10
RUN export DEBIAN_FRONTEND=noninteractive \
&& apt-get update \
&& apt-get upgrade -y \
&& apt-cache depends patroni | sed -n -e 's/.* Depends: \(python3-.\+\)$/\1/p' \
| grep -Ev '^python3-(sphinx|etcd|consul|kazoo|kubernetes)' \
| xargs apt-get install -y vim-tiny curl jq nano python3-pip python3-wheel \
&& pip3 install patroni[etcd] \
&& apt-get purge -y python3-pip python3-wheel\
&& apt-get autoremove -y \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/* /root/.cache
RUN mkdir /database/ \
&& chown postgres:postgres /database
USER postgres
ENV PATH="/usr/lib/postgresql/10/bin:${PATH}"
s0
s0
ENV PATH="/usr/lib/postgresql/12/bin:${PATH}"
HA