diff options
| author | Joe Carstairs <me@joeac.net> | 2026-07-02 17:51:33 +0100 |
|---|---|---|
| committer | Joe Carstairs <me@joeac.net> | 2026-07-02 17:51:33 +0100 |
| commit | eaecbcf41ff5843e64ff4ac110dc26d308d035ab (patch) | |
| tree | 9420fc80fdccd186db5249d78c1b65dcdf1f6fb5 /make/container.mk | |
| parent | 7b07b7574755a26010ed1da192827732b6770145 (diff) | |
moves ports from .env to make
Diffstat (limited to 'make/container.mk')
| -rw-r--r-- | make/container.mk | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/make/container.mk b/make/container.mk index a9758ff..ba398a7 100644 --- a/make/container.mk +++ b/make/container.mk @@ -1,8 +1,14 @@ +capitalise = $(shell _v="$(1)"; echo $${_v^^}) + CPU_ARCH := $(if $(shell which arch 2>/dev/null),\ $(shell arch),\ $(shell lscpu | grep ^Architecture: | sed "s/^Architecture:[[:space:]]*\([[:alnum:][:punct:]]\+\).*/\1/")) IMAGE_PREFIX := $(if $(filter armv7%,$(CPU_ARCH)),armv7/) -COMPOSE_CMD := IMAGE_PREFIX="$(IMAGE_PREFIX)" podman-compose +COMPOSE_CMD := \ + IMAGE_PREFIX="$(IMAGE_PREFIX)" \ + LOCAL_SMTP_PORT=$(PORT_smtp) \ + $(foreach module,$(ALL_MODULES),$(call capitalise,$(module))_PORT=$(PORT_$(module))) \ + podman-compose REGISTRY_DOMAIN := git.joeac.net REGISTRY_USER := joeac |
