You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+25-14Lines changed: 25 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -205,27 +205,27 @@ You can access them with your browser at the following paths.
205
205
206
206
## Docker
207
207
208
-
We also provide a [Docker image for the Quit Store](https://hub.docker.com/r/aksw/quitstore/) on the public docker hub.
209
-
The Image will expose port 8080 by default.
210
-
An existing repository can be linked to the volume `/data`.
211
-
The default configuration is located in `/etc/quit/config.ttl`, which can also be overwritten using a respective volume or by setting the `QUIT_CONFIGFILE` environment variable.
208
+
We provide a Docker image for the Quit Store on the [public docker hub](https://hub.docker.com/r/aksw/quitstore/) as well as on the [github docker registry](https://github.com/AKSW/QuitStore/pkgs/container/quitstore).
209
+
The image exposes port 8080 by default.
210
+
The default user within the image is the user `quit` with the user id `1000`.
211
+
For this user a git configuration with `user.name QuitStore` and `user.email quitstore@example.org` is preset.
212
+
Without any further configuration, a git repository is initialized within the container in the `/data` directory (owned by the default user `quit`).
212
213
213
-
Further options which can be set are:
214
+
To store the data on the host a local directory or volume is required to store the git repository.
215
+
An host directory or volume can be linked to the directory `/data`.
216
+
Make sure the quit process running with the user id `1000` within the docker container has write access to this directory.
214
217
215
-
*`QUIT_TARGETDIR` - the target repository directory on which quit should run
216
-
*`QUIT_CONFIGFILE` - the path to the config.ttl (default: `/etc/quit/config.ttl`)
217
-
*`QUIT_LOGFILE` - the path where quit should create its logfile
218
-
*`QUIT_BASEPATH` - the HTTP base path where quit will be served
219
-
*`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/))
220
-
*`QUIT_OAUTH_SECRET` - the GitHub OAuth secret
218
+
Alternatively the user id within the container can be set using the [`docker run --user $UID …` option](https://docs.docker.com/engine/reference/commandline/run/).
219
+
In this case you have to make sure a `user.name` a `user.email` is configure using `git config` within the repository (`.git/config`) or a git config file is mounted to `/.gitconfig` (to `/usr/src/app/.gitconfig` if you are running it with user id `1000`).
220
+
221
+
Example setup with the default user:
221
222
222
-
You need a local directory where you want to store the git repository.
223
-
In the example below `mkdir /store/repo`.
224
-
Make sure the quit process in the docker container has write access to this directory by executing:
225
223
```
224
+
mkdir /store/repo
226
225
sudo chown 1000 /store/repo
227
226
sudo chmod u+w /store/repo
228
227
```
228
+
229
229
To run the image execute the following command (maybe you have to replace `docker` with `sudo docker`):
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`.
242
242
243
+
The default configuration is located in `/etc/quit/config.ttl`, which can also be overwritten using a respective volume or by setting the `QUIT_CONFIGFILE` environment variable.
244
+
245
+
Further options which can be set are:
246
+
247
+
*`QUIT_TARGETDIR` - the target repository directory on which quit should run
248
+
*`QUIT_CONFIGFILE` - the path to the config.ttl (default: `/etc/quit/config.ttl`)
249
+
*`QUIT_LOGFILE` - the path where quit should create its logfile
250
+
*`QUIT_BASEPATH` - the HTTP base path where quit will be served
251
+
*`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/))
252
+
*`QUIT_OAUTH_SECRET` - the GitHub OAuth secret
253
+
243
254
## Run the Tests
244
255
245
256
You need to have the quitstore installed from source, see section [Installation from Source](#installation-from-source).
0 commit comments