11space := $(subst ,, )
22PGHOST := $(shell ip -json addr|jq -r '.[] | select(.ifname | test("^docker0$$") ) | .addr_info[] | select(.family | test("^inet$$")) | .local')
3-
3+ PGVECTOR_VERSION := 0.8.1
44
55define build-image
66 @echo Base tag $1
77 @echo Postgis versions $2
88 @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+ docker build --pull --no-cache --build-arg BASE_TAG=${1} --build-arg POSTGIS_VERSIONS=${2} --build-arg DEBIAN_RELEASE=${3} --build-arg PGVECTOR_VERSION= $( PGVECTOR_VERSION ) - t camptocamp/postgres:${1}-postgis-$(subst $(space ) ,-,${2}) .
1010 docker stop db || true
1111 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})
1212 sleep 10
@@ -20,19 +20,7 @@ define build-image
2020 docker system prune --all -f
2121endef
2222
23- all : 10 11 12 13 14 15 16
24-
25- 10 :
26- $(call build-image,"10","3","bullseye")
27-
28- 11 :
29- $(call build-image,"11","3","bookworm")
30-
31- 12 :
32- $(call build-image,"12","3","bookworm")
33-
34- 13 :
35- $(call build-image,"13","3","bookworm")
23+ all : 14 15 16 17 18
3624
372514 :
3826 $(call build-image,"14","3","bookworm")
@@ -45,3 +33,6 @@ all: 10 11 12 13 14 15 16
4533
463417 :
4735 $(call build-image,"17","3","bookworm")
36+
37+ 18 :
38+ $(call build-image,"17","3","bookworm")
0 commit comments