435c0d9fc8
This PR switches the Nomad repository from using govendor to Go modules for managing dependencies. Aspects of the Nomad workflow remain pretty much the same. The usual Makefile targets should continue to work as they always did. The API submodule simply defers to the parent Nomad version on the repository, keeping the semantics of API versioning that currently exists.
20 lines
485 B
Docker
20 lines
485 B
Docker
FROM golang
|
|
|
|
RUN mkdir -p $GOPATH/src/github.com/hpcloud/tail/
|
|
ADD . $GOPATH/src/github.com/hpcloud/tail/
|
|
|
|
# expecting to fetch dependencies successfully.
|
|
RUN go get -v github.com/hpcloud/tail
|
|
|
|
# expecting to run the test successfully.
|
|
RUN go test -v github.com/hpcloud/tail
|
|
|
|
# expecting to install successfully
|
|
RUN go install -v github.com/hpcloud/tail
|
|
RUN go install -v github.com/hpcloud/tail/cmd/gotail
|
|
|
|
RUN $GOPATH/bin/gotail -h || true
|
|
|
|
ENV PATH $GOPATH/bin:$PATH
|
|
CMD ["gotail"]
|