1
- FROM postgres:16 -alpine AS env-build
1
+ FROM postgres:17 -alpine AS env-build
2
2
3
3
RUN apk add --no-cache build-base postgresql-dev git
4
4
@@ -8,22 +8,22 @@ RUN git clone https://github.com/fboulnois/pg_uuidv7.git .
8
8
COPY pg_buildext .
9
9
10
10
# build extension for all supported versions
11
- RUN /bin/sh pg_buildext build-16 16
11
+ RUN /bin/sh pg_buildext build-17 17
12
12
13
13
# 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
17
17
18
- FROM postgres:16 -alpine AS env-deploy
18
+ FROM postgres:17 -alpine AS env-deploy
19
19
20
20
# copy tarball and checksums
21
21
COPY --from=0 /srv/pg_uuidv7.tar.gz /srv/SHA256SUMS /srv/
22
22
23
23
# add extension to postgres
24
24
COPY --from=0 /srv/${PG_MAJOR}/pg_uuidv7.so /usr/local/lib/postgresql/pg_uuidv7
25
25
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
27
27
28
28
# Add a script to run the CREATE EXTENSION command
29
29
RUN printf '#!/bin/sh\n psql -U "$POSTGRES_USER" -d "$POSTGRES_DB" -c "CREATE EXTENSION pg_uuidv7;"' > /docker-entrypoint-initdb.d/init.sh
0 commit comments