-
Notifications
You must be signed in to change notification settings - Fork 41
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
Fix make targets which generate mig-parted packages #41
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,17 +25,20 @@ REGISTRY ?= nvcr.io/nvidia | |
IMAGE := $(REGISTRY)/$(NAME) | ||
endif | ||
|
||
# strip 'v' from version string | ||
PACKAGE_VERSION := $(VERSION:v%=%) | ||
|
||
##### Public rules ##### | ||
|
||
VALID_TARGETS = tarball ubuntu18.04 ubuntu20.04 ubi8 | ||
VALID_TARGETS = tarball ubuntu20.04 ubi8 | ||
|
||
all: $(VALID_TARGETS) | ||
.PHONY: all $(VALID_TARGETS) | ||
|
||
tarball: | ||
$(DOCKER) build --pull \ | ||
--build-arg PACKAGE_NAME=$(NAME) \ | ||
--build-arg PACKAGE_VERSION=$(VERSION) \ | ||
--build-arg PACKAGE_VERSION=$(PACKAGE_VERSION) \ | ||
--build-arg PACKAGE_REVISION=$(REVISION) \ | ||
--build-arg GOLANG_VERSION=$(GOLANG_VERSION) \ | ||
--tag $(IMAGE):$(vVERSION)-tarball \ | ||
|
@@ -45,24 +48,10 @@ tarball: | |
-v $$(pwd)/dist/$(@):/dist \ | ||
$(IMAGE):$(vVERSION)-$(@) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We seem to pre-pend the
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
ubuntu18.04: | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. One concern I have here is that this will cause the packages we build to be incompatible with older debian-based systems. Note that these are not deployment images, but the images we use to build the binaries and package them. This should be aligned with libnvidia-container or the nvidia-container-toolkit. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I have created #42 to do this. Note that we now have There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @elezar thanks for working on the follow-up. Are there any pending items for this PR? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think my concerns are addressed by #42. |
||
$(DOCKER) build --pull \ | ||
--build-arg PACKAGE_NAME=$(NAME) \ | ||
--build-arg PACKAGE_VERSION=$(VERSION) \ | ||
--build-arg PACKAGE_REVISION=$(REVISION) \ | ||
--build-arg GOLANG_VERSION=$(GOLANG_VERSION) \ | ||
--build-arg BASE_IMAGE=nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-ubuntu18.04 \ | ||
--tag $(IMAGE):$(vVERSION)-ubuntu18.04 \ | ||
--file Dockerfile.ubuntu \ | ||
$(BUILD_DIR) | ||
$(DOCKER) run \ | ||
-v $$(pwd)/dist/$(@):/dist \ | ||
$(IMAGE):$(vVERSION)-$(@) | ||
|
||
ubuntu20.04: | ||
$(DOCKER) build --pull \ | ||
--build-arg PACKAGE_NAME=$(NAME) \ | ||
--build-arg PACKAGE_VERSION=$(VERSION) \ | ||
--build-arg PACKAGE_VERSION=$(PACKAGE_VERSION) \ | ||
--build-arg PACKAGE_REVISION=$(REVISION) \ | ||
--build-arg GOLANG_VERSION=$(GOLANG_VERSION) \ | ||
--build-arg BASE_IMAGE=nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-ubuntu20.04 \ | ||
|
@@ -76,7 +65,7 @@ ubuntu20.04: | |
ubi8: | ||
$(DOCKER) build --pull \ | ||
--build-arg PACKAGE_NAME=$(NAME) \ | ||
--build-arg PACKAGE_VERSION=$(VERSION) \ | ||
--build-arg PACKAGE_VERSION=$(PACKAGE_VERSION) \ | ||
--build-arg PACKAGE_REVISION=$(REVISION) \ | ||
--build-arg GOLANG_VERSION=$(GOLANG_VERSION) \ | ||
--build-arg BASE_IMAGE=nvcr.io/nvidia/cuda:${CUDA_VERSION}-base-ubi8 \ | ||
|
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.
Out of scope for this PR: in the libnvidia-container and nvidia-container-toolkit packages, I started generating the changelog automatically as part of the build to streamline things. Not sure if that's something we want to try here.