代码拉取完成,页面将自动刷新
FROM ubuntu/postgres:12-20.04_beta
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN printf 'APT::Install-Recommends "0";\nAPT::Install-Suggests "0";' > /etc/apt/apt.conf.d/01norecommend \
&& apt-get update -y \
# Install Patroni and its dependencies.
&& 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 git python3-pip python3-wheel \
&& pip3 install --no-cache-dir setuptools==60.9.3 \
&& pip3 install --no-cache-dir 'git+https://github.com/zalando/patroni.git@v2.1.2#egg=patroni[kubernetes]' \
# Clean up.
&& apt-get remove -y git python3-pip python3-wheel \
&& apt-get autoremove -y \
&& apt-get clean -y \
&& rm -rf /var/lib/apt/lists/* /root/.cache
# Expose PostgreSQL and Patroni REST API ports.
EXPOSE 5432 8008
# Default environment variables.
ENV PATRONI_SUPERUSER_USERNAME=postgres
ENV PATRONI_REPLICATION_USERNAME=replication
# User which should own Patroni and PostgreSQL processes.
USER postgres
COPY entrypoint.sh /
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。