The idea of this example was to show problems with usage of time.LocalLocation in docker container. You can read complete blog post here http://pouzek.si/blog/go-loadlocation-docker/
To install example, install Go 1.9+ and run go get
:
$ go get github.com/mitjaziv/go-loadlocation-docker
This will install the go-loadlocation-docker
in to your $GOBIN
path.
Example should be compatible also with older versions of Go.
To start example locally, run following:
$ go-loadlocation-docker
For docker test you need to have installed docker on your machine.
To build docker container, run following:
$ cd $GOPATH/src/github.com/mitjaziv/go-loadlocation-docker
$ make docker
To start built container, run following:
$ docker run go-loadlocation-docker