Skip to content

Commit

Permalink
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 0755b0c commit ebe62af
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 @@ -71,7 +71,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

comma := ,

Expand Down

0 comments on commit ebe62af

Please sign in to comment.