From 05a0a6f31b1351e4d0feef81ec1487c471762e0c Mon Sep 17 00:00:00 2001 From: Athanasios Kompouras Date: Mon, 14 Oct 2024 12:20:30 -0400 Subject: [PATCH 1/3] Remove whitespaces from IMG_NAME and IMG_VENDOR --- makefile.include | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile.include b/makefile.include index 81d026af..b1b436e5 100644 --- a/makefile.include +++ b/makefile.include @@ -1,5 +1,5 @@ -IMG_NAME=$(shell echo $(NAME) | tr '[:upper:]' '[:lower:]') -IMG_VENDOR=$(shell echo $(VENDOR) | tr '[:upper:]' '[:lower:]') +IMG_NAME=$(shell echo $(NAME) | tr '[:upper:]' '[:lower:]' | tr -d '[:space:]') +IMG_VENDOR=$(shell echo $(VENDOR) | tr '[:upper:]' '[:lower:]' | tr -d '[:space:]') IMAGES=$(shell ls $(IMAGE_GLOB) 2>/dev/null) NUM_IMAGES=$(shell ls $(IMAGES) | wc -l) VRNETLAB_VERION=$$(git log -1 --format=format:"Commit: %H from %aD") From 6df1231963038a6ac684d7b8386c3e0237ad9118 Mon Sep 17 00:00:00 2001 From: Athanasios Kompouras Date: Mon, 14 Oct 2024 12:21:33 -0400 Subject: [PATCH 2/3] Fix Cisco CSR1000v --- csr/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/csr/Makefile b/csr/Makefile index 0d40ecaa..4096c798 100644 --- a/csr/Makefile +++ b/csr/Makefile @@ -1,5 +1,5 @@ -VENDOR=Cisco -NAME=CSR1000v +VENDOR=cisco +NAME=csr1000v IMAGE_FORMAT=qcow2 IMAGE_GLOB=*.qcow2 @@ -16,6 +16,6 @@ docker-pre-build: -rm cidfile docker-build: docker-build-common - docker run --cidfile cidfile --privileged $(REGISTRY)vr-$(VR_NAME):$(VERSION) --trace --install - docker commit --change='ENTRYPOINT ["/launch.py"]' $$(cat cidfile) $(REGISTRY)vr-$(VR_NAME):$(VERSION) + docker run --cidfile cidfile --privileged $(REGISTRY)$(VENDOR)_$(NAME):$(VERSION) --trace --install + docker commit --change='ENTRYPOINT ["/launch.py"]' $$(cat cidfile) $(REGISTRY)$(VENDOR)_$(NAME):$(VERSION) docker rm -f $$(cat cidfile) From abd9603b5f14c0a7bb535bb81ee27d0fb0df27c3 Mon Sep 17 00:00:00 2001 From: Athanasios Kompouras Date: Mon, 14 Oct 2024 13:59:55 -0400 Subject: [PATCH 3/3] Fix Cisco c8000v --- c8000v/Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/c8000v/Makefile b/c8000v/Makefile index b2c74b4a..daa054bd 100644 --- a/c8000v/Makefile +++ b/c8000v/Makefile @@ -1,11 +1,10 @@ -VENDOR=Cisco +VENDOR=cisco NAME=c8000v IMAGE_FORMAT=qcow2 IMAGE_GLOB=*.qcow2 # match versions like: -# csr1000v-universalk9.16.03.01a.qcow2 -# csr1000v-universalk9.16.04.01.qcow2 +# c8000v-17.11.01a.qcow2 VERSION=$(shell echo $(IMAGE) | sed -e 's/.\+[^0-9]\([0-9]\+\.[0-9]\+\.[0-9]\+[a-z]\?\)\([^0-9].*\|$$\)/\1/') -include ../makefile-sanity.include @@ -13,6 +12,6 @@ VERSION=$(shell echo $(IMAGE) | sed -e 's/.\+[^0-9]\([0-9]\+\.[0-9]\+\.[0-9]\+[a -include ../makefile-install.include docker-build: docker-build-common - docker run --cidfile cidfile --privileged $(REGISTRY)vr-$(VR_NAME):$(VERSION) --trace --install - docker commit --change='ENTRYPOINT ["/launch.py"]' $$(cat cidfile) $(REGISTRY)vr-$(VR_NAME):$(VERSION) + docker run --cidfile cidfile --privileged $(REGISTRY)$(VENDOR)_$(NAME):$(VERSION) --trace --install + docker commit --change='ENTRYPOINT ["/launch.py"]' $$(cat cidfile) $(REGISTRY)$(VENDOR)_$(NAME):$(VERSION) docker rm -f $$(cat cidfile)