#306  Do not Mount Total "/opt/onedev" Folder in Docker Mode
Closed
Khose opened 3 years ago

The current way to use docker to delpoy onedev need to mount the tatal "/opt/onedev" folder using "-v" when run the onedev docker image.

I try to mount only the "conf' and "site" folder but the docker image can't work fine. The error is " onedev should work in a top folder".

In my useage, only configuration files and static files should be mounted and the mounted files will be backup. If mount "/opt/onedev", I find that many jar file and lib file has been mounted but I think there is no necessary to backup these files.

So ShouldI have a way to only mount some of the onedev folders ?

Robin Shen commented 3 years ago

Not only the conf and site directory are modified, the sampledb can also be modified if internal database is used. Also the application jars will be used during upgrade process. Backing up the whole directory you will get all data plus the application jars working with these data.

Robin Shen changed state to 'Closed' 3 years ago
Previous Value Current Value
Open
Closed
issue 1 of 1
Type
Improvement
Priority
Normal
Assignee
Issue Votes (0)
Watchers (3)
Reference
onedev/server#306
Please wait...
Page is in error, reload to recover