Closed TerribleDev closed 6 years ago
I think if you overlay mount the /var/opengrok inside container you will get what you want (didn't try it though, so the mileage might vary)
Thanks, I'll give that a shot and report back...
to be specific /var/opengrok/data is where the index will live, but other dirs might be interesting too (logs, config, ... )
@TerribleDev Did it work? Is this the best way to persist the opengrok index?
I think the same thing as is used for source root can be used for data root, i.e. the -v
option of docker run
, e.g.:
sudo docker run -d -v /home/vkotal/src:/src -v /home/vkotal/data:/data \
-p 8888:8080 opengrok/docker:latest
Just tried that, works fine.
@Schoaf sorry I kinda ghosted this thread. Yes that worked fine
Is there a path I can volume mount or a way I can persist the index files opengrok writes to disk outside of the container?