| COPY dir:805b7b615f81e75673222c414687861f93f7467414a3ad2a005deaee29233413 in / |
| LABEL maintainer=Alexander Kukushkin <akukushkin@microsoft.com> |
| ARG PG_MAJOR |
| ARG COMPRESS |
| ARG PGHOME |
| ARG PGDATA |
| ARG LC_ALL |
| ARG LANG |
| ARG PGBIN=/usr/lib/postgresql/16/bin |
| ENV LC_ALL=C.UTF-8 LANG=C.UTF-8 EDITOR=/usr/bin/editor |
| ENV PGDATA=/home/postgres/data PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/lib/postgresql/16/bin |
| ENV ETCDCTL_API=3 |
| COPY dir:0709f2f4d97986b918d2f1bc17aabefad2964e752bc7b5cbd2c26207b4555b3d in /patroni/ |
| COPY file:30cde40e0d2f0af51664bf6d3958b9546fac844d41313e4be0ce539228ba6f97 in /etc/confd/conf.d/ |
| COPY file:942a9d708587e02a01316bcbea49a6c8486d8543ceb03fc9ffe3947c72351cae in /etc/confd/templates/ |
| COPY multi:6a4768dae2e11127ce8d2504a23bf33ac7cd8eb6361c77228e90b2f1d84b0131 in / |
| COPY multi:78b590681aaa59fbf8f60c894c12ac786b3281d9299b4dc34755f50edf069234 in /home/postgres/ |
| WORKDIR /home/postgres |
| |4 COMPRESS=false PGBIN=/usr/lib/postgresql/16/bin PGHOME=/home/postgres PG_MAJOR=16 /bin/sh -c sed -i 's/env python/&3/' /patroni*.py && sed -i 's/^ listen: 127.0.0.1/ listen: 0.0.0.0/' postgres?.yml && sed -i "s|^\( data_dir: \).*|\1$PGDATA|" postgres?.yml && sed -i "s|^#\( bin_dir: \).*|\1$PGBIN|" postgres?.yml && sed -i 's/^ - encoding: UTF8/ - locale: en_US.UTF-8\n&/' postgres?.yml && sed -i 's/^\(scope\|name\|etcd\| host\| authentication\| connect_address\| parameters\):/#&/' postgres?.yml && sed -i 's/^ \(replication\|superuser\|rewind\|unix_socket_directories\|\(\( \)\{0,1\}\(username\|password\)\)\):/#&/' postgres?.yml && sed -i 's/^ parameters:/&\n max_connections: 100/' postgres?.yml && sed -i 's/^ pg_hba:/&\n - local all all trust/' postgres?.yml && sed -i 's/^\(.*\) \(.*\) md5/\1 all md5/' postgres?.yml && if [ "$COMPRESS" = "true" ]; then chmod u+s /usr/bin/sudo; fi && chmod +s /bin/ping && chown -R postgres:postgres "$PGHOME" /run /etc/haproxy |
| USER postgres |
| ENTRYPOINT ["/bin/sh" "/entrypoint.sh"] |