-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build: Fix intermediate dotnet openCV image #596
build: Fix intermediate dotnet openCV image #596
Conversation
/add-build-dependency-containers-label |
👋 Added [build dependency containers] label :)! |
👋 Added [build dependency containers] label :)! |
/add-same-version-label |
👋 Added [same version] label :)! |
👋 Added [same version] label :)! |
0087bcb
to
2462fb1
Compare
It should be helpful : dotnet/dotnet-docker#1537 |
2462fb1
to
2ebc179
Compare
Thanks @jbpaux, this should do the trick now ... And for this one in particular, I don't see much added value in maintaining this image, maybe we can find an alternative to opencv here that doesn't need hours of compilation on our side. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just one nit on a missing platform and then LGTM!
build/intermediate-containers.mk
Outdated
@@ -18,15 +18,15 @@ opencv-base: opencv-base-build opencv-base-docker-per-arch | |||
opencv-base-build: opencv-base-build-amd64 opencv-base-build-arm32 opencv-base-build-arm64 | |||
opencv-base-build-amd64: | |||
ifeq (1, ${BUILD_AMD64}) | |||
docker build $(CACHE_OPTION) -f $(INTERMEDIATE_DOCKERFILE_DIR)/Dockerfile.opencvsharp-build . -t $(PREFIX)/opencvsharp-build:$(BUILD_OPENCV_BASE_VERSION)-$(AMD64_SUFFIX) --build-arg PLATFORM_TAG=3.1-buster-slim | |||
docker build $(CACHE_OPTION) -f $(INTERMEDIATE_DOCKERFILE_DIR)/Dockerfile.opencvsharp-build . -t $(PREFIX)/opencvsharp-build:$(BUILD_OPENCV_BASE_VERSION)-$(AMD64_SUFFIX) --build-arg PLATFORM= |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like platform is missing here
docker build $(CACHE_OPTION) -f $(INTERMEDIATE_DOCKERFILE_DIR)/Dockerfile.opencvsharp-build . -t $(PREFIX)/opencvsharp-build:$(BUILD_OPENCV_BASE_VERSION)-$(AMD64_SUFFIX) --build-arg PLATFORM= | |
docker build $(CACHE_OPTION) -f $(INTERMEDIATE_DOCKERFILE_DIR)/Dockerfile.opencvsharp-build . -t $(PREFIX)/opencvsharp-build:$(BUILD_OPENCV_BASE_VERSION)-$(AMD64_SUFFIX) --build-arg PLATFORM=-$(AMD64_SUFFIX) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I should add a comment here (and maybe remove the build-arg
argument as well) this is intended, aspnet amd64 images are not suffixed and the other uses of the PLATFORM
variable expect empty for amd64.
+1 to finding a way not to maintain this opencv image |
@diconico07 once this is in, we can then merge #594 and then #593, right? |
@kate-goldenring that's right, we will also need another quick PR I didn't submit yet to change the |
The image was built using the wrong version of opencvsharp, fix this. Also switch to shallow clone to reduce build time (a bit). Signed-off-by: Nicolas Belouin <[email protected]>
2ebc179
to
f74af6d
Compare
Sounds good. @diconico07 lets merge these in after this one: #599 |
What this PR does / why we need it:
The image was built using the wrong version of opencvsharp, fix this.
Also switch to shallow clone to reduce build time (a bit).
Should fix #580
Special notes for your reviewer:
If applicable:
cargo fmt
)cargo build
)cargo clippy
)cargo test
)cargo doc
)