-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
45 lines (39 loc) · 1.49 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
OPENCV_VERSION := $(shell grep OPENCV_VERSION .version | cut -d '=' -f '2')
GOLANG_VERSION := $(shell grep GOLANG_VERSION .version | cut -d '=' -f 2)
GOCV_VERSION := $(shell grep GOCV_VERSION .version | cut -d '=' -f 2)
PLATFORM := linux/amd64,linux/arm64
opencv.merge:
docker buildx build --push --platform=$(PLATFORM) \
--file=merge.Dockerfile \
--tag=querycap/opencv-debian:$(OPENCV_VERSION)-ffmpeg-buster \
--build-arg=OPENCV_VERSION=$(OPENCV_VERSION) \
.
opencv.base-amd64:
docker buildx build --push --platform=linux/amd64 \
--file=opencv.Dockerfile \
--tag=querycap/opencv-debian:$(OPENCV_VERSION)-ffmpeg-buster-amd64 \
--build-arg=OPENCV_VERSION=$(OPENCV_VERSION) \
.
opencv.base-arm64:
docker buildx build --push --platform=linux/arm64 \
--file=opencv.Dockerfile \
--tag=querycap/opencv-debian:$(OPENCV_VERSION)-ffmpeg-buster-arm64 \
--build-arg=OPENCV_VERSION=$(OPENCV_VERSION) \
.
gocv:
docker buildx build --push --progress plain \
--platform=$(PLATFORM) \
--file=gocv.Dockerfile \
--tag=querycap/gocv-debian:$(GOLANG_VERSION)-ffmpeg-buster \
--build-arg=GOLANG_VERSION=$(GOLANG_VERSION) \
--build-arg=OPENCV_VERSION=$(OPENCV_VERSION) \
--build-arg=GOCV_VERSION=${GOCV_VERSION} \
.
opencv.runtime:
docker buildx build --push \
--platform=$(PLATFORM) \
--file=runtime.Dockerfile \
--tag=querycap/opencv-debian:runtime-$(OPENCV_VERSION)-go$(GOLANG_VERSION) \
--build-arg=OPENCV_VERSION=$(OPENCV_VERSION) \
--build-arg=GOLANG_VERSION=$(GOLANG_VERSION) \
.