@@ -5,7 +5,8 @@ PGHOST := $(shell ip -json addr|jq -r '.[] | select(.ifname | test("^docker0$$")
5
5
define build-image
6
6
@echo Base tag $1
7
7
@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}) .
9
10
docker stop db || true
10
11
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})
11
12
sleep 10
@@ -19,19 +20,25 @@ define build-image
19
20
docker system prune --all -f
20
21
endef
21
22
22
- all : 10 11 12 13 14
23
+ all : 10 11 12 13 14 15 16
23
24
24
25
10 :
25
- $(call build-image,"10","3")
26
+ $(call build-image,"10","3","bullseye" )
26
27
27
28
11 :
28
- $(call build-image,"11","3")
29
+ $(call build-image,"11","3","bookworm" )
29
30
30
31
12 :
31
- $(call build-image,"12","3")
32
+ $(call build-image,"12","3","bookworm" )
32
33
33
34
13 :
34
- $(call build-image,"13","3")
35
+ $(call build-image,"13","3","bookworm" )
35
36
36
37
14 :
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