summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Ish <ish@unx.ca>2022-11-16 09:30:44 -0600
committerJason Ish <ish@unx.ca>2022-11-16 09:30:44 -0600
commitf8756e33e2ef74428c6806b669add622e83e0c44 (patch)
treeb81d62399785e9ce3c47a9ef0e12bd57c51ab4d9
parent2562f62fdf47af240aa5abb632117cf259cdc9fa (diff)
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.
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index bbccd52..abe141b 100644
--- a/Makefile
+++ b/Makefile
@@ -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