How to run a go-service example
- Install Bravetools and verify it is up and running:
brave info
- Build base unit based on Ubuntu Bionic:
$ brave base ubuntu/bionic
- Build go-service image. Run in
go-service
project root:
$ brave build
This command creates a go-service-1.0 image. Verify that image stored in the local image store:
$ brave images
- Deploy a unit:
5. brave deploy
Verify that unit go-service
is up and running
$ brave units
Unit is a web service running on port 3000. Type http://[HOST_IP]:3000/bravetools
in web browser. This should display a web page with a siple content.
URL http://[HOST_IP]:3000/bravetools shows Hi there, I love bravetools!
- Deleting unit:
Run in terminal:
$ brave remove go-service