Skip to content

Commit 9608950

Browse files
authored
chore: ⬆️ Upgrade Postgres version to 17
1 parent 7d25e69 commit 9608950

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

Dockerfile

+7-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM postgres:16-alpine AS env-build
1+
FROM postgres:17-alpine AS env-build
22

33
RUN apk add --no-cache build-base postgresql-dev git
44

@@ -8,22 +8,22 @@ RUN git clone https://github.com/fboulnois/pg_uuidv7.git .
88
COPY pg_buildext .
99

1010
# build extension for all supported versions
11-
RUN /bin/sh pg_buildext build-16 16
11+
RUN /bin/sh pg_buildext build-17 17
1212

1313
# create tarball and checksums
14-
RUN cp sql/pg_uuidv7--1.5.sql . && TARGETS=$(find * -name pg_uuidv7.so) \
15-
&& tar -czvf pg_uuidv7.tar.gz $TARGETS pg_uuidv7--1.5.sql pg_uuidv7.control \
16-
&& sha256sum pg_uuidv7.tar.gz $TARGETS pg_uuidv7--1.5.sql pg_uuidv7.control > SHA256SUMS
14+
RUN cp sql/pg_uuidv7--1.6.sql . && TARGETS=$(find * -name pg_uuidv7.so) \
15+
&& tar -czvf pg_uuidv7.tar.gz $TARGETS pg_uuidv7--1.6.sql pg_uuidv7.control \
16+
&& sha256sum pg_uuidv7.tar.gz $TARGETS pg_uuidv7--1.6.sql pg_uuidv7.control > SHA256SUMS
1717

18-
FROM postgres:16-alpine AS env-deploy
18+
FROM postgres:17-alpine AS env-deploy
1919

2020
# copy tarball and checksums
2121
COPY --from=0 /srv/pg_uuidv7.tar.gz /srv/SHA256SUMS /srv/
2222

2323
# add extension to postgres
2424
COPY --from=0 /srv/${PG_MAJOR}/pg_uuidv7.so /usr/local/lib/postgresql/pg_uuidv7
2525
COPY --from=0 /srv/pg_uuidv7.control /usr/local/share/postgresql/extension
26-
COPY --from=0 /srv/pg_uuidv7--1.5.sql /usr/local/share/postgresql/extension
26+
COPY --from=0 /srv/pg_uuidv7--1.6.sql /usr/local/share/postgresql/extension
2727

2828
# Add a script to run the CREATE EXTENSION command
2929
RUN printf '#!/bin/sh\npsql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "CREATE EXTENSION pg_uuidv7;"' > /docker-entrypoint-initdb.d/init.sh

0 commit comments

Comments
 (0)