Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker script refactoring and rewrite to Python #3402

Merged
merged 19 commits into from
Feb 19, 2021
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,4 +76,4 @@ RUN chmod -R +x /scripts
# run
WORKDIR $CATALINA_HOME
EXPOSE 8080
CMD ["/scripts/start.sh"]
CMD ["/scripts/start.py"]
3 changes: 3 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ The mirroring step works by going through all projects and attempting to
synchronize all its repositories (e.g. it will do `git pull` for Git
repositories).

Projects are enabled in this setup and there is no way how to change that.

### Indexer logs

The indexer/mirroring is set so that it does not log into files.
Expand Down Expand Up @@ -77,6 +79,7 @@ The volume mounted to `/opengrok/src` should contain the projects you want to ma
`INDEXER_OPT` | empty | 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
`NOMIRROR` | empty | To avoid the mirroring step, set the variable to non-empty value.
`URL_ROOT` | `/` | Override the sub-URL that OpenGrok should run on.
`WORKERS` | number of CPUs in the container | number of workers to use for syncing

To specify environment variable for `docker run`, use the `-e` option, e.g. `-e REINDEX=30`

Expand Down
33 changes: 0 additions & 33 deletions docker/index.sh

This file was deleted.

Loading