Skip to content

Commit d487f09

Browse files
committed
load any TAR file
1 parent a5651df commit d487f09

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

Makefile

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -190,10 +190,8 @@ build build-nc: .env ## Builds production images and tags them as 'local/{servic
190190
@docker images --filter="reference=local/*:production"
191191

192192
load-images: guard-local-src ## loads images from local-src
193-
# loading from images from $(local-src)...
194-
@$(foreach service, $(SERVICES_NAMES_TO_BUILD),\
195-
docker load --input $(local-src)/$(service).tar; \
196-
)
193+
# loading from any tar images from $(local-src)...
194+
@find $(local-src) -name '*.tar' -print0 | xargs -0 -n1 -P $(shell nproc) --no-run-if-empty --verbose docker load --input
197195
# all images loaded
198196
@docker images
199197

0 commit comments

Comments
 (0)