2021-09-02 10:03:56 +00:00
|
|
|
# To build:
|
|
|
|
# docker build -f Dockerfile-test -t gocv-test .
|
|
|
|
#
|
|
|
|
# To run tests:
|
|
|
|
# xhost +
|
|
|
|
# docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix gocv-test
|
|
|
|
# xhost -
|
|
|
|
#
|
2022-06-09 10:30:53 +00:00
|
|
|
FROM gocv/opencv:4.6.0 AS gocv-test
|
2021-09-02 10:03:56 +00:00
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
|
|
|
|
COPY . /go/src/gocv.io/x/gocv/
|
|
|
|
|
|
|
|
WORKDIR /go/src/gocv.io/x/gocv
|
|
|
|
|
|
|
|
RUN go get -u github.com/rakyll/gotest
|
|
|
|
|
|
|
|
ENTRYPOINT ["gotest", "-v", ".", "./contrib/..."]
|