diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..91870ea --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +# -*- sh -*- + +FROM ubuntu:quantal + +RUN echo "deb http://archive.ubuntu.com/ubuntu quantal main universe" >> /etc/apt/sources.list + +RUN apt-get -qy update +RUN apt-get -qy install golang-go +RUN apt-get -qy install git mercurial bzr subversion + +ENV GOPATH $HOME/go + +# 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 + diff --git a/Makefile b/Makefile index 86a4913..e597de3 100644 --- a/Makefile +++ b/Makefile @@ -5,3 +5,6 @@ test: *.go fmt: go fmt . + +fulltest: + sudo docker build -t ActiveState/tail .