Skip to content

Commit

Permalink
Merge pull request #53 from cmuellner/podman
Browse files Browse the repository at this point in the history
Makefile: Add implicit SELinux labels when using podman
  • Loading branch information
wmat authored Aug 14, 2024
2 parents c13766b + 8ccec5d commit 746d88b
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,18 @@ VERSION ?= v0.0.0
REVMARK ?= Draft
DOCKER_IMG := riscvintl/riscv-docs-base-container-image:latest
ifneq ($(SKIP_DOCKER),true)
DOCKER_CMD := docker run --rm -v ${PWD}:/build -w /build \
${DOCKER_IMG} \
/bin/sh -c
DOCKER_IS_PODMAN = \
$(shell ! docker -v 2>&1 | grep podman >/dev/null ; echo $$?)
ifeq "$(DOCKER_IS_PODMAN)" "1"
DOCKER_VOL_SUFFIX = :z
endif

DOCKER_CMD := \
docker run --rm \
-v ${PWD}:/build${DOCKER_VOL_SUFFIX} \
-w /build \
${DOCKER_IMG} \
/bin/sh -c
DOCKER_QUOTE := "
endif

Expand Down

0 comments on commit 746d88b

Please sign in to comment.