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.
This commit is contained in:
Jason Ish
2022-11-16 09:30:44 -06:00
parent 2562f62fdf
commit f8756e33e2
+2 -2
View File
@@ -6,8 +6,8 @@ TIMESTAMP := $(shell date -u +"%Y%m%d%H%M%S")
all:
$(DOCKER) build --tag zmk --file Dockerfile .
$(DOCKER) run --rm -it --name zmk \
-v $(PWD)/firmware:/app/firmware \
-v $(PWD)/config:/app/config:ro \
-v $(PWD)/firmware:/app/firmware:z \
-v $(PWD)/config:/app/config:ro,z \
-e TIMESTAMP=$(TIMESTAMP) \
zmk