Skip to content
Consul Demo
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Dockerfile
README.md
main.go

README.md

Consul Demo

Demo app to grab Service instances + KV data from Consul.

#76 - Consul (screencast)

Build go app for linux (from mac)
CGO_ENABLED=0 GOOS=linux go build -a -installsuffix cgo -ldflags '-w' -o web ./main.go
Build/push container
docker build -t jweissig/consul-demo .
docker push jweissig/consul-demo
Run container

https://hub.docker.com/r/jweissig/consul-demo

docker run -p 5005:5005 --rm jweissig/consul-demo
Connect to localhost

http://localhost:5005/

You can’t perform that action at this time.