From 59d418e3a4b5f462f8c7a2645bc8d71b458e99b2 Mon Sep 17 00:00:00 2001 From: Natanael Arndt Date: Wed, 17 Apr 2019 14:48:51 +0200 Subject: [PATCH 1/3] Clarify docker commands --- README.md | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 2e1a3a6c..14d051ae 100644 --- a/README.md +++ b/README.md @@ -221,13 +221,19 @@ Further options which can be set are: To run the image execute the following command: ``` -docker run --name containername -v /existing/store/repo:/data aksw/quitstore +docker run -it --name containername -v /existing/store/repo:/data aksw/quitstore ``` The following example will map the quit store port to the host port 80. ``` -docker run --name containername -p 80:8080 -v /existing/store.repo:/data aksw/quitstore +docker run -it --name containername -p 80:8080 -v /existing/store/repo:/data aksw/quitstore +``` + +The following example will start the quit store in the background in the detached mode. + +``` +docker run -d --name containername -p 80:8080 -v /existing/store/repo:/data aksw/quitstore ``` ## Migrate from old Versions From 8bd5257f4e6a9f6b7e91270d515310bd0648a6df Mon Sep 17 00:00:00 2001 From: Natanael Arndt Date: Wed, 17 Apr 2019 15:02:16 +0200 Subject: [PATCH 2/3] Add info about the write permission --- README.md | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 14d051ae..251778fc 100644 --- a/README.md +++ b/README.md @@ -218,22 +218,19 @@ Further options which can be set are: * `QUIT_OAUTH_CLIENT_ID` - the GitHub OAuth client id (for OAuth see also the [github docu](https://developer.github.com/apps/building-oauth-apps/authorization-options-for-oauth-apps/)) * `QUIT_OAUTH_SECRET` - the GitHub OAuth secret -To run the image execute the following command: +You need a local directory where you want to store the git repository. +In the example below `mkdir /store/repo`. +Make sure the quit process in the docker container has write access to this directory by executing: `sudo chown 1000 /store/repo` +To run the image execute the following command (maybe you have to replace `docker` with `sudo docker`): ``` -docker run -it --name containername -v /existing/store/repo:/data aksw/quitstore -``` - -The following example will map the quit store port to the host port 80. - -``` -docker run -it --name containername -p 80:8080 -v /existing/store/repo:/data aksw/quitstore +docker run -it --name containername -p 8080:8080 -v /store/repo:/data aksw/quitstore ``` The following example will start the quit store in the background in the detached mode. ``` -docker run -d --name containername -p 80:8080 -v /existing/store/repo:/data aksw/quitstore +docker run -d --name containername -p 8080:8080 -v /store/repo:/data aksw/quitstore ``` ## Migrate from old Versions From bd1dbd958e24379f8c38f52b99339958ab7bf412 Mon Sep 17 00:00:00 2001 From: Natanael Arndt Date: Wed, 17 Apr 2019 15:06:52 +0200 Subject: [PATCH 3/3] Some more info --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 251778fc..15f06eab 100644 --- a/README.md +++ b/README.md @@ -220,7 +220,11 @@ Further options which can be set are: You need a local directory where you want to store the git repository. In the example below `mkdir /store/repo`. -Make sure the quit process in the docker container has write access to this directory by executing: `sudo chown 1000 /store/repo` +Make sure the quit process in the docker container has write access to this directory by executing: +``` +sudo chown 1000 /store/repo +sudo chmod u+w /store/repo +``` To run the image execute the following command (maybe you have to replace `docker` with `sudo docker`): ``` @@ -233,6 +237,8 @@ The following example will start the quit store in the background in the detache docker run -d --name containername -p 8080:8080 -v /store/repo:/data aksw/quitstore ``` +Now you should be able to access the quit web interface under `http://localhost:8080` and the SPARQL 1.1 interface under `http://localhost:8080/sparql`. + ## Migrate from old Versions ### Update to 2018-11-20 from 2018-10-29 and older