Skip to content

Commit 891b5c3

Browse files
王瑞华王瑞华
authored andcommitted
update GOLANG_VERSION=1.16
1 parent 337c22b commit 891b5c3

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

.version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
OPENCV_VERSION=4.5.0
22
GOLANG_VERSION=1.16
3+
GOCV_VERSION=0.25.0

Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
OPENCV_VERSION := $(shell grep OPENCV_VERSION .version | cut -d '=' -f '2')
22
GOLANG_VERSION := $(shell grep GOLANG_VERSION .version | cut -d '=' -f 2)
3+
GOCV_VERSION := $(shell grep GOCV_VERSION .version | cut -d '=' -f 2)
34
PLATFORM := linux/amd64,linux/arm64
45

56
opencv.merge:
@@ -31,6 +32,7 @@ gocv:
3132
--tag=querycap/gocv-debian:$(GOLANG_VERSION)-ffmpeg-buster \
3233
--build-arg=GOLANG_VERSION=$(GOLANG_VERSION) \
3334
--build-arg=OPENCV_VERSION=$(OPENCV_VERSION) \
35+
--build-arg=GOCV_VERSION=${GOCV_VERSION} \
3436
.
3537

3638
opencv.runtime:

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
opencv + ffmpeg + debian
44

55
+ debian: buster
6-
+ golang: 1.15.2
7-
+ opencv: 4.4.0
6+
+ golang: 1.16
7+
+ opencv: 4.5.0
88

99
## images
1010

gocv.Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ LABEL maintainer="querycap"
55
LABEL DATE="2020-11-19"
66

77
ARG GOLANG_VERSION
8+
ARG GOCV_VERSION
89
ARG TARGETARCH
910
ENV GOLANG_VERSION $GOLANG_VERSION
1011

@@ -24,7 +25,7 @@ RUN mkdir -p "$GOPATH/src" "$GOPATH/bin" && chmod -R 777 "$GOPATH"
2425
WORKDIR $GOPATH
2526

2627
RUN go get -u -d gocv.io/x/gocv \
27-
&& cd $GOPATH/src/gocv.io/x/gocv/cmd/version/ \
28+
&& cd $GOPATH/pkg/mod/gocv.io/x/gocv@v${GOCV_VERSION}/cmd/version \
2829
&& go build -o /usr/bin/gocv_version -i main.go
2930

3031
CMD ["/usr/bin/gocv_version"]

0 commit comments

Comments
 (0)