An attempt to make a common prefab structure for a golang web server as an os service that has the tarball, rpm, and deb packages all set up.
a linux environment with docker pre-installed
- Clone this dir
- remove the main.go file
- add your go files
- tweak Makefile and Dakefile to change your package name.
- run
make
- check
./output
to see if all your stuff got built - if you're feeling lucky run
make testrpm
test deb packages, test rpms and debs to make sure they run as sysvinit, systemd, and upstart packages