-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Enable the Go race detector to help surface race conditions when running the tests. The race detector currently depends on libc, so does not work with Alpine Linux (which uses musl): golang/go#9918 golang/go#14481 Instead, use the default Go Docker image, which uses the libc-based Debian Jessie and update the Dockerfiles accordingly.
- Loading branch information
1 parent
ad83cb9
commit 9ef580c
Showing
3 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
FROM golang:1.8-alpine | ||
FROM golang:1.8 | ||
MAINTAINER Matt Bostock <[email protected]> | ||
|
||
EXPOSE 9080 | ||
|
||
WORKDIR /go/src/github.com/mattbostock/athensdb | ||
COPY . /go/src/github.com/mattbostock/athensdb | ||
|
||
RUN apk add --no-cache git make && \ | ||
RUN apt-get update && \ | ||
apt-get install -y git make && \ | ||
make && \ | ||
apk del make && \ | ||
apt-get purge -y git make && \ | ||
cd && \ | ||
rm -rf /go/src | ||
|
||
|
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
FROM golang:1.8-alpine | ||
FROM golang:1.8 | ||
MAINTAINER Matt Bostock <[email protected]> | ||
|
||
WORKDIR /go/src/github.com/mattbostock/athensdb | ||
COPY . /go/src/github.com/mattbostock/athensdb | ||
|
||
RUN go test -c -o /bin/athensdb.test -tags integration ./integration_tests && \ | ||
RUN go test -c -o /bin/athensdb.test -race -tags integration ./integration_tests && \ | ||
cd /bin && \ | ||
rm -rf /go/src | ||
|
||
|