Browse Source

Makefile: allow volumes to work on selinux

Volumes need the "z" option to work on selinux enabled systems. This has
no affect on systems that are not selinux enabled.
V3.0
Jason Ish 3 years ago
parent
commit
f8756e33e2
  1. 4
      Makefile

4
Makefile

@ -6,8 +6,8 @@ TIMESTAMP := $(shell date -u +"%Y%m%d%H%M%S")
all: all:
$(DOCKER) build --tag zmk --file Dockerfile . $(DOCKER) build --tag zmk --file Dockerfile .
$(DOCKER) run --rm -it --name zmk \ $(DOCKER) run --rm -it --name zmk \
-v $(PWD)/firmware:/app/firmware \ -v $(PWD)/firmware:/app/firmware:z \
-v $(PWD)/config:/app/config:ro \ -v $(PWD)/config:/app/config:ro,z \
-e TIMESTAMP=$(TIMESTAMP) \ -e TIMESTAMP=$(TIMESTAMP) \
zmk zmk

Loading…
Cancel
Save