This is how I was doing that in some very old version of Opengrok:
docker run -d (...) -e IGNORE_PATTERNS="-i *.swp -i */build/*" (...)
Now I'm trying more recent version (1.5). I've found info that IGNORE_PATTERNS was changed to OPENGROK_IGNORE_PATTERNS but it doesn't work for me (opengrok works but files are not ignored).
This is my current command:
docker run -d -v /tmp/test1/:/opengrok/src -e OPENGROK_IGNORE_PATTERNS="-i *.swp -i d:build" -p 9876:8080 opengrok/docker:1.5
Apparently OPENGROK_IGNORE_PATTERNS was once again changed. This time to INDEXER_OPT which works.