-
Notifications
You must be signed in to change notification settings - Fork 97
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
Update Makefile #289
base: master
Are you sure you want to change the base?
Update Makefile #289
Conversation
In the last line is calling the variable $(VR_NAME) but it wasn't defined before so i update the variable NAME to VR_NAME
# mostly copied from makefile.include, i wish this was easier to change | ||
docker-build-common: docker-clean-build docker-pre-build | ||
@if [ -z "$$IMAGE" ]; then echo "ERROR: No IMAGE specified"; exit 1; fi | ||
@if [ "$(IMAGE)" = "$(VERSION)" ]; then echo "ERROR: Incorrect version string ($(IMAGE)). The regexp for extracting version information is likely incorrect, check the regexp in the Makefile or open an issue at https://github.com/hellt/vrnetlab/issues/new including the image file name you are using."; exit 1; fi | ||
@echo "Building docker image using $(IMAGE) as $(REGISTRY)vr-$(VR_NAME):$(VERSION)" | ||
cp ../common/* docker/ | ||
$(MAKE) IMAGE=$$IMAGE docker-build-image-copy | ||
(cd docker; docker build --build-arg http_proxy=$(http_proxy) --build-arg https_proxy=$(https_proxy) --build-arg RE_IMAGE=$(IMAGE) --build-arg PFE_IMAGE=$(PFE_IMAGE) -t $(REGISTRY)vr-$(VR_NAME):$(VERSION) .) |
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.
Hi @Zegroj
I had a look at the makefile and I wonder if it is time to change it to the common workflow. I pushed over the change, if you do a pull and rerun make
I wonder if you will build a bootable system. Thnx
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.
Hi @hellt i re run it with the change you made but didnt allow me to build a bootable system in the vqfx, i tried again with the old version but with this change "the variable NAME to VR_NAME" and worked fine
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.
ah, I see, I think the PFE image was missing when I removed this overriding build step. I will have a look
In the last line is calling the variable $(VR_NAME) but it wasn't defined before so i update the variable NAME to VR_NAME