Device data API with Go Micro
Go
Switch branches/tags
Nothing to show
Clone or download
Latest commit 4bb5a32 Mar 22, 2017
Permalink
Failed to load latest commit information.
.gitignore Updated readme Mar 17, 2017
Dockerfile First commit Mar 17, 2017
README.md Updated readme Mar 17, 2017
go-data-dep.yaml First commit Mar 17, 2017
main.go simpler client Mar 22, 2017

README.md

go-data

Device data API with Go Micro

Note: this is just a simple REST API to get fake data for a device. This API checks with a device API if the device is active. The device API is written with Go Micro.

The Dockerfile uses the empty scratch image and requires that you build a static exe with the following command:

CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -o main .

To run in a container, you can use environment variables to specify options like the registry to use like so:

docker run -d -p 8080:8080 --env MICRO_REGISTRY=mdns image_tag

Use go-data-dep.yaml to deploy to Kubernetes like so:

kubectl create -f go-data-dep.yaml