@@ -11,7 +11,8 @@ BUILD_FIPS_WIN_TMP ?= windows/build
1111SHELL = /usr/bin/env bash -o pipefail
1212ENFORCE_FIPS := -tags enforce_fips
1313CURRENT_OS = $(shell uname -a | awk '{print $$1}')
14- PLATFORM ?=
14+ PLATFORM ?= linux/arm64/v8,linux/amd64
15+ BUILDER ?= container
1516
1617# Extra arguments
1718EXTRA_BUILD_ARGS ?=
@@ -129,6 +130,44 @@ images_release: # entrypoints
129130 @echo " $( DOCKER) push splitsoftware/split-proxy-fips:$( version) "
130131 @echo " $( DOCKER) push splitsoftware/split-proxy-fips:latest"
131132
133+ # # Build release-ready docker images with proper tags and output push commands in stdout
134+ images_release_multi : # entrypoints
135+ @echo " make sure you have buildx configured 'docker buildx ls', if not 'docker buildx create --name container --driver=docker-container'"
136+ $(DOCKER ) buildx build \
137+ -t splitsoftware/split-synchronizer:latest -t splitsoftware/split-synchronizer:$(version ) \
138+ -f docker/Dockerfile.synchronizer \
139+ --platform $(PLATFORM ) \
140+ --builder $(BUILDER ) \
141+ --load .
142+ $(DOCKER ) buildx build \
143+ -t splitsoftware/split-proxy:latest -t splitsoftware/split-proxy:$(version ) \
144+ -f docker/Dockerfile.proxy \
145+ --platform $(PLATFORM ) \
146+ --builder $(BUILDER ) \
147+ --load .
148+ $(DOCKER ) buildx build \
149+ -t splitsoftware/split-synchronizer-fips:latest -t splitsoftware/split-synchronizer-fips:$(version ) \
150+ --build-arg FIPS_MODE=enabled \
151+ -f docker/Dockerfile.synchronizer \
152+ --platform $(PLATFORM ) \
153+ --builder $(BUILDER ) \
154+ --load .
155+ $(DOCKER ) buildx build \
156+ -t splitsoftware/split-proxy-fips:latest -t splitsoftware/split-proxy-fips:$(version ) \
157+ --build-arg FIPS_MODE=enabled \
158+ -f docker/Dockerfile.proxy \
159+ --platform $(PLATFORM ) \
160+ --builder $(BUILDER ) \
161+ --load .
162+ @echo " Images created. Make sure everything works ok, and then run the following commands to push them."
163+ @echo " $( DOCKER) push splitsoftware/split-synchronizer:$( version) "
164+ @echo " $( DOCKER) push splitsoftware/split-synchronizer:latest"
165+ @echo " $( DOCKER) push splitsoftware/split-proxy:$( version) "
166+ @echo " $( DOCKER) push splitsoftware/split-proxy:latest"
167+ @echo " $( DOCKER) push splitsoftware/split-synchronizer-fips:$( version) "
168+ @echo " $( DOCKER) push splitsoftware/split-synchronizer-fips:latest"
169+ @echo " $( DOCKER) push splitsoftware/split-proxy-fips:$( version) "
170+ @echo " $( DOCKER) push splitsoftware/split-proxy-fips:latest"
132171# --------------------------------------------------------------------------
133172#
134173# Internal targets:
@@ -291,7 +330,7 @@ mkexec = $(if $(findstring windows,$1),$1.exe,$1)
291330installed_from_zip = $(if $(findstring split_sync,$1) ,split-sync,split-proxy)
292331apptitle_from_zip = $(if $(findstring split_sync,$1) ,Synchronizer,Proxy)
293332cmdfolder_from_bin = $(if $(findstring split_sync,$1) ,synchronizer,proxy)
294- platform_str = $(if $(PLATFORM ) ,--platform= $(PLATFORM ) ,)
333+ platform_str = $(if $(PLATFORM ) ,--platform $(PLATFORM ) ,)
295334
296335# "constants"
297336null :=
0 commit comments