Initial version of pg_autoconfig
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2024-04-03 00:46:52 +02:00
parent 1a2b57b9c1
commit ec1b611781
5 changed files with 310 additions and 0 deletions

View File

@@ -1,4 +1,16 @@
FROM golang:1.21-bullseye AS builder
WORKDIR /usr/local/src/pg_autoconfig
COPY go.* ./
COPY *.go ./
RUN go mod download
RUN mkdir bin/ && go build -o bin/ ./...
FROM postgis/postgis:16-master
COPY --from=builder /usr/local/src/pg_autoconfig/bin/pg_autoconfig /
RUN localedef -i cs_CZ -c -f UTF-8 -A /usr/share/locale/locale.alias cz_CZ.UTF-8 && \
apt-get update && apt-get install -y postgresql-16-auto-failover pg-auto-failover-cli && rm -rf /var/lib/apt/lists/*