Skip to content

Commit

Permalink
Merge pull request #7 from devilbox/docker-pull
Browse files Browse the repository at this point in the history
Only pull unique docker images
  • Loading branch information
cytopia authored Oct 23, 2022
2 parents acfb526 + 5ae558a commit d0f9cb5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile.docker
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ docker-pull-base-image:
@echo "################################################################################"
@echo "# Pulling Base Image $(shell grep FROM $(DIR)/$(FILE) | sed 's/^FROM\s*//g';) (platform: $(ARCH))"
@echo "################################################################################"
@grep FROM $(DIR)/$(FILE) | sed 's/^FROM\s*//g' | sed 's/\s.*$$//g' | while read -r line; do \
@grep FROM $(DIR)/$(FILE) | sed 's/^FROM\s*//g' | sed 's/\s.*$$//g' | sort -u | while read -r line; do \
echo "docker pull --platform $(ARCH) $${line}"; \
while ! docker pull --platform $(ARCH) $${line}; do sleep 1; done \
done
Expand Down

0 comments on commit d0f9cb5

Please sign in to comment.