Skip to content

Commit

Permalink
tools/docker: Add VERBOSE option
Browse files Browse the repository at this point in the history
  • Loading branch information
Mizux committed Aug 30, 2024
1 parent 431d4ab commit e12f8f2
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions tools/docker/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,7 @@ help:
@echo -e "\te.g. 'make arm64_almalinux-9_export'"
@echo
@echo -e "\t${BOLD}NOCACHE=1${RESET}: use 'docker build --no-cache' when building container (default use cache)."
@echo -e "\t${BOLD}VERBOSE=1${RESET}: use 'docker build --progress=plain' when building container."
@echo
@echo -e "${BOLD}NOTES${RESET}"
@echo -e "\tAll generated code will be located in the export/ folder, use target ${BOLD}distclean${RESET} to remove it."
Expand Down Expand Up @@ -161,14 +162,16 @@ $(info version: ${OR_TOOLS_VERSION})
# Docker image name prefix.
IMAGE := or-tools/docker

ifdef NOCACHE
DOCKER_BUILD_CMD := docker build --no-cache
DOCKER_BUILDX_CMD := docker buildx build --no-cache
else
DOCKER_BUILD_CMD := docker build
DOCKER_BUILDX_CMD := docker buildx build
ifdef NOCACHE
DOCKER_BUILD_CMD := ${DOCKER_BUILD_CMD} --no-cache
DOCKER_BUILDX_CMD := ${DOCKER_BUILDX_CMD} --no-cache
endif
ifdef VERBOSE
DOCKER_BUILD_CMD := ${DOCKER_BUILD_CMD} --progress=plain
DOCKER_BUILDX_CMD := ${DOCKER_BUILDX_CMD} --progress=plain
endif
DOCKER_RUN_CMD := docker run --rm --init

#################
### DELIVERY ##
Expand Down

0 comments on commit e12f8f2

Please sign in to comment.