2022-08-21 20:31:19 +00:00
|
|
|
# To build:
|
|
|
|
# docker build -f Dockerfile-test -t gocv-test .
|
|
|
|
#
|
|
|
|
# To run tests:
|
|
|
|
# xhost +
|
2023-10-15 09:53:35 +00:00
|
|
|
# docker run -it --rm -e DISPLAY=$DISPLAY -v /tmp/.X11-unix:/tmp/.X11-unix gocv-test-4.x
|
2022-08-21 20:31:19 +00:00
|
|
|
# xhost -
|
|
|
|
#
|
2023-10-15 09:53:35 +00:00
|
|
|
FROM ghcr.io/hybridgroup/opencv:4.8.1 AS gocv-test-4.7
|
2022-08-21 20:31:19 +00:00
|
|
|
|
|
|
|
ENV GOPATH /go
|
|
|
|
|
|
|
|
COPY . /go/src/gocv.io/x/gocv/
|
|
|
|
|
|
|
|
WORKDIR /go/src/gocv.io/x/gocv
|
|
|
|
|
2023-10-15 09:53:35 +00:00
|
|
|
RUN go install github.com/rakyll/gotest@latest
|
2022-08-21 20:31:19 +00:00
|
|
|
|
|
|
|
ENTRYPOINT ["gotest", "-v", ".", "./contrib/..."]
|