$ docker build -t simplego .
$ docker run -it simplego go test -v ./... -race
Created
September 9, 2015 07:54
-
-
Save miry/fece267c7faba904c360 to your computer and use it in GitHub Desktop.
Alpine go test with race
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
func main() { | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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