From 3f6cb5235714f1cbf0fb1fe9b7dd68456cd7f0f1 Mon Sep 17 00:00:00 2001 From: Olivier Gambier Date: Wed, 19 Nov 2014 14:53:32 -0800 Subject: [PATCH] Move to own dev image --- .drone.yml | 10 +--------- project/dev-image/Dockerfile | 19 +++++++++++++++++++ 2 files changed, 20 insertions(+), 9 deletions(-) create mode 100644 project/dev-image/Dockerfile diff --git a/.drone.yml b/.drone.yml index f98fe203..2d42f6a5 100644 --- a/.drone.yml +++ b/.drone.yml @@ -1,14 +1,6 @@ -image: bradrydzewski/go:1.3 - -env: - - GOROOT=/usr/local/go - - PATH=$PATH:$GOROOT/bin:$GOPATH/bin +image: dmp42/go:stable script: - - go get github.com/axw/gocov/gocov - - go get github.com/mattn/goveralls - - go get github.com/golang/lint/golint - - go get -t ./... - FAIL=$(find ./ -iname "*.go" -exec gofmt -s -l {} \;) && echo "$FAIL" && test -z "$FAIL" diff --git a/project/dev-image/Dockerfile b/project/dev-image/Dockerfile new file mode 100644 index 00000000..f77af95c --- /dev/null +++ b/project/dev-image/Dockerfile @@ -0,0 +1,19 @@ +FROM ubuntu:14.04 + +ENV GOLANG_VERSION 1.4rc1 +ENV GOPATH /var/cache/drone +ENV GOROOT /usr/local/go +ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin + +ENV LANG C + +RUN apt-get update && apt-get install -y \ + wget ca-certificates git mercurial bzr \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +RUN wget https://golang.org/dl/go$GOLANG_VERSION.linux-amd64.tar.gz --quiet && \ + tar -C /usr/local -xzf go$GOLANG_VERSION.linux-amd64.tar.gz && \ + rm go${GOLANG_VERSION}.linux-amd64.tar.gz + +RUN go get github.com/axw/gocov/gocov github.com/mattn/goveralls github.com/golang/lint/golint \ No newline at end of file