@@ -11,7 +11,8 @@ BUILD_FIPS_WIN_TMP ?= windows/build
11
11
SHELL = /usr/bin/env bash -o pipefail
12
12
ENFORCE_FIPS := -tags enforce_fips
13
13
CURRENT_OS = $(shell uname -a | awk '{print $$1}')
14
- PLATFORM ?=
14
+ PLATFORM ?= linux/arm64/v8,linux/amd64
15
+ BUILDER ?= container
15
16
16
17
# Extra arguments
17
18
EXTRA_BUILD_ARGS ?=
@@ -129,6 +130,44 @@ images_release: # entrypoints
129
130
@echo " $( DOCKER) push splitsoftware/split-proxy-fips:$( version) "
130
131
@echo " $( DOCKER) push splitsoftware/split-proxy-fips:latest"
131
132
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"
132
171
# --------------------------------------------------------------------------
133
172
#
134
173
# Internal targets:
@@ -291,7 +330,7 @@ mkexec = $(if $(findstring windows,$1),$1.exe,$1)
291
330
installed_from_zip = $(if $(findstring split_sync,$1) ,split-sync,split-proxy)
292
331
apptitle_from_zip = $(if $(findstring split_sync,$1) ,Synchronizer,Proxy)
293
332
cmdfolder_from_bin = $(if $(findstring split_sync,$1) ,synchronizer,proxy)
294
- platform_str = $(if $(PLATFORM ) ,--platform= $(PLATFORM ) ,)
333
+ platform_str = $(if $(PLATFORM ) ,--platform $(PLATFORM ) ,)
295
334
296
335
# "constants"
297
336
null :=
0 commit comments