Hacker News new | ask | show | jobs
by izacus 4116 days ago
I use Gogs on my Synology NAS for personal use and I love it. Mostly because it's so easy to setup and deploy - cross-compiling the binary for ARM was simple, after that it was just a matter of SCPing it to the NAS itself.

It's not as feature rich as other options, but it does it's job well.

2 comments

Care to share how did you get it working on Synology? Thanks very much.
Uhm, basically I built it on my mac with

GOOS=linux GOARCH=arm GOARM=7 go build

See http://dave.cheney.net/2012/09/08/an-introduction-to-cross-c... for cross compilation instructions.

Then I created a new user, scpd the distribution and added gogs binary to rc.local. I also installed git from the Synology package manager. There was some tweaking involved, but that was mostly it.

Thanks izacus for sharing!
I would be interested by a more in-depth how-to too.
Synology has also just announced Docker support on DSM 5.2 beta [1], so we could also run Gogs as a docker image :)

[1] https://www.synology.com/en-global/dsm/5.2beta/productivity