Skip to content

Commit

Permalink
fix (#19445)
Browse files Browse the repository at this point in the history
Why I did it
DEFAULT_CONTAINER_REGISTRY didn't work as expected in some scenario.

How I did it
When check for docker arch, use DEFAULT_CONTAINER_REGISTRY if it is not null.
  • Loading branch information
liushilongbuaa authored Jul 3, 2024
1 parent ec0d1b0 commit 6e991a5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Makefile.work
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ SHELL = /bin/bash
USER := $(shell id -un)
PWD := $(shell pwd)
USER_LC := $(shell echo $(USER) | tr A-Z a-z)
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
HOST_DOCKERD_GID := $(shell getent group docker | cut -d : -f3)

comma := ,
Expand Down

0 comments on commit 6e991a5

Please sign in to comment.