Skip to content

Commit

Permalink
load any TAR file
Browse files Browse the repository at this point in the history
  • Loading branch information
sanderegg committed Dec 8, 2024
1 parent a5651df commit d487f09
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,8 @@ build build-nc: .env ## Builds production images and tags them as 'local/{servic
@docker images --filter="reference=local/*:production"

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

Expand Down

0 comments on commit d487f09

Please sign in to comment.