File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2424 matrix :
2525 pg_image :
2626 - pg14-timescale-2.16
27- - pg18
27+ - pg-18
2828 include :
29- - pg_image : pg18
29+ - pg_image : pg-18
3030 latest : true
3131 steps :
3232 - uses : actions/checkout@v4
Original file line number Diff line number Diff line change 11ARG ALPINE_VERSION=3.22
2- ARG PG_IMAGE=pg14-timescale-2.16
2+ ARG PG_IMAGE=pg-18
33FROM alpine:${ALPINE_VERSION} AS pgbadger-builder
44
55RUN apk add --no-cache \
@@ -42,7 +42,6 @@ RUN apk add -uU --no-cache \
4242 su-exec \
4343 openssl \
4444 krb5 \
45- postgresql17-client \
4645 perl
4746
4847# Copy pgBadger
@@ -55,15 +54,16 @@ COPY --from=build /app/dist /app/dist
5554COPY --from=build /app/node_modules /app/node_modules
5655
5756# Setup postgres user and directories
58- RUN mkdir -p /var/lib/postgresql/data \
57+ RUN addgroup -S postgres && adduser -S -G postgres postgres \
58+ && mkdir -p /var/lib/postgresql/data \
5959 && chown -R postgres:postgres /var/lib/postgresql \
6060 && chown -R postgres:postgres /usr/local/pgsql \
6161 && chmod 1777 /tmp
6262
6363WORKDIR /app
64- # making sure we use the binaries from the installed postgresql17 client
65- ENV PG_DUMP_BINARY=/usr/bin/pg_dump
66- ENV PG_RESTORE_BINARY=/usr/bin/pg_restore
64+ # pg_dump and pg_restore come from /usr/local/pgsql/bin copied from postgres-source
65+ ENV PG_DUMP_BINARY=/usr/local/pgsql/ bin/pg_dump
66+ ENV PG_RESTORE_BINARY=/usr/local/pgsql/ bin/pg_restore
6767ENV PATH="/usr/local/pgsql/bin:$PATH"
6868ENV PGDATA=/var/lib/postgresql/data
6969
You can’t perform that action at this time.
0 commit comments