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.
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 ?