Docker for Go Tour

Use
All code from golangvn/tour will be updated when gotour service is restarted.
Use service in Core OS
- /home/core/docker-gotour This is working directory of service. Please pull code to this directory.
- Unit files are located at /etc/systemd/system/ . Please copy file gotour.service to there.
- Service commands:
sudo systemctl start gotour
sudo systemctl stop gotour
How to use autodeploy
go build autodeploy.go
- Copy bin file to server and run it
- Add webhook with endpoint /update-docker-go-tour
TODO
- Auto restart gotour service when tour translate update
- Prevent multiple request to restart service with autodeploy.go script
- Support webhook screet
- Only update when pust to translate-vi branch