Fix mounts to work with enforcing SELinux
Also works with disabled SELinux.
Resolves #1
Change-Id: I8726640c93fe205754eca14b7752071274bb342e
diff --git a/Readme.md b/Readme.md
index 21683e4..69806b5 100644
--- a/Readme.md
+++ b/Readme.md
@@ -55,7 +55,7 @@
```shell
$ docker run --rm \
- -v ${PWD}/example/:/data korap/kalamar:latest-conv \
+ -v ${PWD}/example:/data:z korap/kalamar:latest-conv \
tei2korapxml \
--inline-tokens '!cmc#morpho' \
--input /data/dck-part1.i5.xml > dck.zip
@@ -78,7 +78,7 @@
```shell
$ mkdir json
$ docker run --rm -u root \
- -v ${PWD}/:/kalamar/data/ korap/kalamar:latest-conv\
+ -v ${PWD}:/kalamar/data:z korap/kalamar:latest-conv\
korapxml2krill archive \
-z \
-i /kalamar/data/dck.zip \
@@ -106,7 +106,7 @@
```shell
$ mkdir index
-$ docker run -u root --rm -v ${PWD}/:/data/ korap/kustvakt \
+$ docker run -u root --rm -v ${PWD}:/data:z korap/kustvakt \
Krill-Indexer.jar -c kustvakt-lite.conf \
-i /data/json -o /data/index/
```
diff --git a/docker-compose.yml b/docker-compose.yml
index 29d8a48..fe91227 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -11,4 +11,4 @@
expose:
- "8089"
volumes:
- - "${INDEX}:/kustvakt/index"
+ - "${INDEX}:/kustvakt/index:z"