From 5f7390f41941311fcf43bae792274e402b953dea Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 6 Jan 2017 12:24:19 +0000 Subject: [PATCH 1/2] Added svn authentication docs --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 8d3322a..50e256a 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,17 @@ docker run -d -v [source to be indexed on host]:/src -p [public port]:8080 itsze It may take a while for the indexer to finish the first-time indexing, after that, the search engine is available at `http://host:[public port]/source/`. +## Authentication +### Subversion +If your repository is secured, adding the following volumes allows the container to connect to the remote repository using your existing subversion credentials cache. This assumes you have run svn operations on the host user. + +```sh +docker run -d -v [source to be indexed on host]:/src \ +-v $HOME/.subversion/auth/svn.simple/[auth file name]:/root/.subversion/auth/svn.simple/[auth file name] \ +-v $HOME/.subversion/auth/svn.simple/[auth file name]:/usr/share/tomcat7/.subversion/auth/svn.simple/[auth file name] +-p [public port]:8080 itszero/opengrok +``` + ## Note The project supports dynamic index updating through `inotifywait` recursively on the source folder. From 8e609821d7168766f2b4cd2e559211fc267cc3a6 Mon Sep 17 00:00:00 2001 From: Chris Date: Fri, 6 Jan 2017 14:26:24 +0000 Subject: [PATCH 2/2] Missed a slash --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 50e256a..e25d177 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ If your repository is secured, adding the following volumes allows the container ```sh docker run -d -v [source to be indexed on host]:/src \ -v $HOME/.subversion/auth/svn.simple/[auth file name]:/root/.subversion/auth/svn.simple/[auth file name] \ --v $HOME/.subversion/auth/svn.simple/[auth file name]:/usr/share/tomcat7/.subversion/auth/svn.simple/[auth file name] +-v $HOME/.subversion/auth/svn.simple/[auth file name]:/usr/share/tomcat7/.subversion/auth/svn.simple/[auth file name] \ -p [public port]:8080 itszero/opengrok ```