Skip to content

Commit

Permalink
github: fix build on newer Alpine Linux for tests
Browse files Browse the repository at this point in the history
  • Loading branch information
gobwas committed Dec 8, 2020
1 parent 1281ff4 commit e5bc048
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
4 changes: 2 additions & 2 deletions autobahn/docker/autobahn/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
FROM alpine:3.12

RUN apk add --no-cache python python-dev gcc build-base musl-dev libffi-dev openssl-dev && \
RUN apk add --no-cache python2 python2-dev gcc build-base musl-dev libffi-dev openssl-dev && \
python -m ensurepip && \
pip install --upgrade pip && \
pip install autobahntestsuite
pip install --no-python-version-warning autobahntestsuite

VOLUME /config
VOLUME /report
Expand Down
11 changes: 7 additions & 4 deletions autobahn/docker/server/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
FROM golang:1.15.6-alpine3.12

RUN apk add --no-cache git && \
go get github.com/gobwas/httphead/... && \
go get github.com/gobwas/pool/...
WORKDIR /go/src/github.com/gobwas/ws

COPY . /go/src/github.com/gobwas/ws
COPY go.mod .
COPY go.sum .
RUN go mod download

COPY . .
ENV CGO_ENABLED=0
RUN go test -c -tags autobahn -coverpkg "github.com/gobwas/ws/..." github.com/gobwas/ws/example/autobahn

CMD ["./autobahn.test", "-test.coverprofile", "/report/server.coverage"]

0 comments on commit e5bc048

Please sign in to comment.