@@ -187,6 +187,11 @@ chwrap_build = $(call go_build,chwrap,./chwrap,$1,$2)\
187
187
&& ./chwrap/make-tarball.sh $(call binary_path,chwrap,$1) $(call binary_path,chwrap.tar,$1) \
188
188
&& rm -f $(call binary_path,chwrap,$1)
189
189
190
+ # node_prep_build is the go build command that compiles the node_prep binary from the source ./cmd/node_prep for
191
+ # the named platform
192
+ # usage: $(call node_prep_build,$(platform),$(linker_flags))
193
+ node_prep_build = $(call go_build,node_prep,./cmd/node_prep, $1, $2)
194
+
190
195
# binaries_for_platform returns a script to build all binaries required for platform. The binaries are tridentctl,
191
196
# trident_orchestrator, chwrap.tar, and trident_operator. chwrap.tar and trident_operator are only built for linux
192
197
# plaforms.
@@ -195,7 +200,8 @@ binaries_for_platform = $(call go_build,tridentctl,./cli,$1,$2)\
195
200
$(if $(findstring darwin,$1) ,,\
196
201
&& $(call go_build,trident_orchestrator,.,$1,$2) \
197
202
$(if $(findstring linux,$1) ,\
198
- && $(call chwrap_build,$1,$2) ) )
203
+ && $(call chwrap_build,$1,$2) \
204
+ && $(call node_prep_build,$1,$2) ) )
199
205
200
206
# build_binaries_for_platforms returns a script to build all binaries for platforms. Attempts to add current directory
201
207
# as a safe git directory, in case GO_SHELL uses a different user than the source repo.
@@ -231,6 +237,7 @@ docker_build_linux = $1 build \
231
237
--build-arg ARCH=$(call arch,$2) \
232
238
--build-arg BIN=$(call binary_path,trident_orchestrator,$2) \
233
239
--build-arg CLI_BIN=$(call binary_path,tridentctl,$2) \
240
+ --build-arg NODE_PREP_BIN=$(call binary_path,node_prep,$2) \
234
241
--build-arg CHWRAP_BIN=$(call binary_path,chwrap.tar,$2) \
235
242
--tag $3 \
236
243
--rm \
0 commit comments