Skip to content

Instantly share code, notes, and snippets.

@miry
Created September 9, 2015 07:54
Show Gist options
  • Save miry/fece267c7faba904c360 to your computer and use it in GitHub Desktop.
Save miry/fece267c7faba904c360 to your computer and use it in GitHub Desktop.
Alpine go test with race
$ docker build -t simplego .
$ docker run -it simplego go test -v ./... -race
FROM alpine:3.2
RUN apk add --update \
curl \
git \
mercurial \
bzr \
go \
gcc \
g++ \
make \
libc-dev && \
rm -rf /var/cache/apk/*
ENV GOROOT /usr/lib/go
ENV GOPATH /gopath
ENV PATH $PATH:$GOROOT/bin:$GOPATH/bin
package main
func main() {
}
package main
import (
"testing"
)
func TestSimpleTest(t *testing.T) {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment