@@ -3,10 +3,10 @@ VERSION 0.6
33all :
44 ARG ELIXIR_BASE= 1.15.6-erlang-25.3.2.6-alpine-3.18.4
55 BUILD \
6- --build-arg POSTGRES= 15.0 \
7- --build-arg POSTGRES= 11.11 \
8- --build-arg POSTGRES= 9.6 \
9- --build-arg POSTGRES= 9.5 \
6+ --build-arg POSTGRES= 16.2-alpine \
7+ --build-arg POSTGRES= 11.11-alpine \
8+ --build-arg POSTGRES= 9.6-alpine \
9+ --build-arg POSTGRES= 9.5-alpine \
1010 +integration-test-postgres
1111
1212 BUILD \
@@ -41,19 +41,19 @@ integration-test-postgres:
4141 FROM +setup-base
4242 ARG POSTGRES= "11.11"
4343
44- IF [ "$POSTGRES" = "9.5" ]
44+ IF [ "$POSTGRES" = "9.5-alpine " ]
4545 # for 9.5 we require a downgraded version of pg_dump;
4646 # and in the 3.4 version, it is not included in postgresql-client but rather in postgresql
4747 RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.4/main' >> /etc/apk/repositories
4848 RUN apk add postgresql= 9.5.13-r0
49- ELSE IF [ "$POSTGRES" = "15.0 " ]
50- # for 15.0 we need an upgraded version of pg_dump;
51- # alpine 3.17 does not come with the postgres 15 client by default;
49+ ELSE IF [ "$POSTGRES" = "16.2-alpine " ]
50+ # for 16 we need an upgraded version of pg_dump;
51+ # alpine 3.16 does not come with the postgres 16 client by default;
5252 # we must first update the public keys for the packages because they
5353 # might have been rotated since our image was built
54- RUN apk add -X https://dl-cdn.alpinelinux.org/alpine/v3.17 /main -u alpine-keys
55- RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.17 /main' >> /etc/apk/repositories
56- RUN apk add postgresql15 -client
54+ RUN apk add -X https://dl-cdn.alpinelinux.org/alpine/v3.19 /main -u alpine-keys
55+ RUN echo 'http://dl-cdn.alpinelinux.org/alpine/v3.19 /main' >> /etc/apk/repositories
56+ RUN apk add postgresql16 -client
5757 ELSE
5858 RUN apk add postgresql-client
5959 END
0 commit comments