2014-06-15 14:39:34 +08:00
|
|
|
FROM ubuntu
|
2013-09-09 11:04:39 +08:00
|
|
|
|
|
|
|
RUN apt-get -qy update
|
2014-06-15 14:39:34 +08:00
|
|
|
RUN apt-get -y install golang-go
|
|
|
|
RUN apt-get -y install git
|
|
|
|
RUN apt-get -y install mercurial subversion
|
2013-09-09 11:04:39 +08:00
|
|
|
|
|
|
|
ENV GOPATH $HOME/go
|
|
|
|
|
2013-09-09 11:13:12 +08:00
|
|
|
RUN mkdir -p $GOPATH/src/github.com/ActiveState/tail/
|
|
|
|
ADD . $GOPATH/src/github.com/ActiveState/tail/
|
|
|
|
|
2013-09-09 11:04:39 +08:00
|
|
|
# expecting to fetch dependencies successfully.
|
|
|
|
RUN go get -v github.com/ActiveState/tail
|
|
|
|
|
|
|
|
# expecting to run the test successfully.
|
|
|
|
RUN go test -v github.com/ActiveState/tail
|
|
|
|
|
2013-09-09 11:20:08 +08:00
|
|
|
# expecting to install successfully
|
|
|
|
RUN go install -v github.com/ActiveState/tail
|
|
|
|
RUN go install -v github.com/ActiveState/tail/cmd/gotail
|
|
|
|
|
|
|
|
RUN $GOPATH/bin/gotail -h || true
|
|
|
|
|
|
|
|
ENV PATH $GOPATH/bin:$PATH
|
|
|
|
CMD ["gotail"]
|
|
|
|
|