Skip to content

Commit

Permalink
docker: add tests image for CUDA 12
Browse files Browse the repository at this point in the history
Signed-off-by: deadprogram <[email protected]>
  • Loading branch information
deadprogram committed Apr 4, 2024
1 parent c9309b2 commit 8197a71
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Dockerfile-test.gpu-cuda-12
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# To build:
# docker build -f Dockerfile-test.gpu-cuda-12 -t gocv-test-gpu-cuda-12 .
#
# To run tests:
# docker run -it --rm --gpus all gocv-test-gpu-cuda-12
#
FROM ghcr.io/hybridgroup/opencv:4.9.0-gpu-cuda-12 AS gocv-gpu-test-cuda-12

ENV GOPATH /go
ENV PATH="${PATH}:/go/bin"

COPY . /go/src/gocv.io/x/gocv/

WORKDIR /go/src/gocv.io/x/gocv

RUN go install github.com/rakyll/gotest@latest

ENTRYPOINT ["gotest", "-v", "./cuda/..."]

0 comments on commit 8197a71

Please sign in to comment.