rancher / community-catalog

Catalog entries contributed by the community
384 stars 636 forks source link

Gogs: Fix data persistence #607

Closed TheDrHax closed 7 years ago

TheDrHax commented 7 years ago

Gogs stores all git repositories in /data/git/gogs-repositories, so they are lost after each restart. This results in error 500 when you try to open the repository.

Also you can find generated SSH keys in /data/ssh that are being lost too.

This commit changes the gogs-data volume to point to /data to achieve data persistence and to avoid creation of dangling volumes.

Source: Dockerfile

Note: I could just add separate volumes for /data/ssh and /data/git to save backward compatibility, but it would produce many dangling volumes out of /data. Tell me if it's not a problem and I will create a new pull request.

rawmind0 commented 7 years ago

Hi @TheDrHax ....Thanks so much for the PR....

LGTM....