From 45e3f1a853ae77a8721f46fe578d17615d50e0f4 Mon Sep 17 00:00:00 2001 From: Sridhar Ratnakumar Date: Mon, 9 Sep 2013 03:04:39 +0000 Subject: [PATCH] system testing using docker --- Dockerfile | 18 ++++++++++++++++++ Makefile | 3 +++ 2 files changed, 21 insertions(+) create mode 100644 Dockerfile 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 .