@@ -5,7 +5,8 @@ PGHOST := $(shell ip -json addr|jq -r '.[] | select(.ifname | test("^docker0$$")
55define build-image
66 @echo Base tag $1
77 @echo Postgis versions $2
8- docker build --pull --no-cache --build-arg BASE_TAG=${1} --build-arg POSTGIS_VERSIONS=${2} -t camptocamp/postgres:${1}-postgis-$(subst $(space ) ,-,${2}) .
8+ @echo Debian release $3
9+ docker build --pull --no-cache --build-arg BASE_TAG=${1} --build-arg POSTGIS_VERSIONS=${2} --build-arg DEBIAN_RELEASE=${3} -t camptocamp/postgres:${1}-postgis-$(subst $(space ) ,-,${2}) .
910 docker stop db || true
1011 docker run --rm --name=db --detach --publish=5432:5432 --env=POSTGRES_USER=www-data --env=POSTGRES_PASSWORD=www-data --env=POSTGRES_DB=test camptocamp/postgres:${1}-postgis-$(subst $(space ) ,-,${2})
1112 sleep 10
@@ -19,19 +20,25 @@ define build-image
1920 docker system prune --all -f
2021endef
2122
22- all : 10 11 12 13 14
23+ all : 10 11 12 13 14 15 16
2324
242510 :
25- $(call build-image,"10","3")
26+ $(call build-image,"10","3","bullseye" )
2627
272811 :
28- $(call build-image,"11","3")
29+ $(call build-image,"11","3","bookworm" )
2930
303112 :
31- $(call build-image,"12","3")
32+ $(call build-image,"12","3","bookworm" )
3233
333413 :
34- $(call build-image,"13","3")
35+ $(call build-image,"13","3","bookworm" )
3536
363714 :
37- $(call build-image,"14","3")
38+ $(call build-image,"14","3","bookworm")
39+
40+ 15 :
41+ $(call build-image,"15","3","bookworm")
42+
43+ 16 :
44+ $(call build-image,"16","3","bookworm")
0 commit comments