OpenGrok / docker

WARNING: this repository is archived !
58 stars 31 forks source link

index files? #14

Closed TerribleDev closed 6 years ago

TerribleDev commented 6 years ago

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?

tarzanek commented 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)

TerribleDev commented 6 years ago

Thanks, I'll give that a shot and report back...

tarzanek commented 6 years ago

to be specific /var/opengrok/data is where the index will live, but other dirs might be interesting too (logs, config, ... )

Schoaf commented 5 years ago

@TerribleDev Did it work? Is this the best way to persist the opengrok index?

vladak commented 5 years ago

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
vladak commented 5 years ago

Just tried that, works fine.

TerribleDev commented 5 years ago

@Schoaf sorry I kinda ghosted this thread. Yes that worked fine