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: docker/README.md
+7-16Lines changed: 7 additions & 16 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,24 +67,15 @@ The container exports ports 8080 for OpenGrok.
67
67
68
68
The volume mounted to `/opengrok/src` should contain the projects you want to make searchable (in sub directories). You can use common revision control checkouts (git, svn, etc...) and OpenGrok will make history and blame information available.
69
69
70
-
By default, the index will be rebuild every ten minutes. You can adjust this
71
-
time (in minutes) by passing the `REINDEX` environment variable:
70
+
## Environment Variables
72
71
73
-
docker run -d -e REINDEX=30 -v <path/to/your/src>:/opengrok/src -p 8080:8080 opengrok/docker:latest
72
+
| Docker Environment Var. | Description |
73
+
| ----------------------- | ----------- |
74
+
`REINDEX: <time_in_minutes>`<br/> *Optional**Default: 10* | Period of automatic mirroring/reindexing. Setting to `0` will disable automatic indexing. You can manually trigger an reindex using docker exec: `docker exec <container> /scripts/index.sh`
75
+
`INDEXER_OPT` | pass extra options to opengrok-indexer. For example, "-i d:vendor" will remove all the `*/vendor/*` files from the index. You can check the indexer options on https://github.com/oracle/opengrok/wiki/Python-scripts-transition-guide
76
+
`NOMIRROR` | To avoid the mirroring step, set the variable to non-empty value.
74
77
75
-
Setting `REINDEX` to `0` will disable automatic indexing. You can manually trigger an reindex using docker exec:
76
-
77
-
docker exec <container> /scripts/index.sh
78
-
79
-
Setting `INDEXER_OPT` could pass extra options to opengrok-indexer. For example, you can run with:
0 commit comments