Locally:
$ go get github.com/amsterdam/authz
$ authz
$ curl http://localhost:8080/authorize?...
Using Docker:
$ docker build -t authz .
$ docker run --rm --expose 8080 -p 8080:8080 authz --bind :8080
$ curl http://localhost:8080/authorize?...
Note We choose to use gdm to pin our dependencies so we have reproducible builds. go get ./...
works just fine so you don't need to use gdm if you don't want to, but if you add dependencies please make sure to update Godeps (gdm save
).
This is how to grab the sources and install dependencies using gdm:
$ mkdir -p $GOPATH/src/github.com/amsterdam/authz
$ cd $GOPATH/src/github.com/amsterdam/authz
$ git clone https://github.com/amsterdam/authz.git
$ go get github.com/sparrc/gdm
$ gdm restore