Skip to content

Commit

Permalink
[202311] use default (local) docker registry when available
Browse files Browse the repository at this point in the history
This PR is cherry-picking sonic-net#19445

Signed-off-by: Ying Xie <[email protected]>
  • Loading branch information
yxieca committed Jul 3, 2024
1 parent 7a03efd commit ffea21a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,11 @@ SHELL = /bin/bash
USER := $(shell id -un)
PWD := $(shell pwd)
USER_LC := $(shell echo $(USER) | tr A-Z a-z)
DOCKER_MACHINE := $(shell docker run --rm debian:buster uname -m)
ifneq ($(DEFAULT_CONTAINER_REGISTRY),)
DOCKER_MACHINE := $(shell docker run --rm $(DEFAULT_CONTAINER_REGISTRY)/debian:buster uname -m)
else
DOCKER_MACHINE := $(shell docker run --rm debian:buster uname -m)
endif

comma := ,

Expand Down

0 comments on commit ffea21a

Please sign in to comment.