02-18-2024 09:03 AM - edited 02-18-2024 09:11 AM
Hi All,
I'm trying to get NSO working in a container following all the steps from https://github.com/NSO-developer/nso-docker
However, I get right to the end of the 'make' and get this error
I'm no 'make' expert but some guidance would be gratefully appreciated
--------------------
ERROR: failed to solve: process "/bin/sh -c apt-get update && apt-get install -qy default-jre-headless iputils-ping less libexpat1 logrotate make openssh-client procps python3 tcpdump telnet xmlstarlet xsltproc && apt-get install -qy --no-install-recommends python3-pip && pip3 install debugpy && apt-get -qy purge python3-pip && apt-get -qy autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /root/.cache && echo '. /opt/ncs/current/ncsrc' >> /root/.bashrc && groupadd ncsadmin && usermod -a -G ncsadmin root && rm /etc/logrotate.d/* && find /etc/cron.daily/ -type f -not -name logrotate -exec rm {} +" did not complete successfully: exit code: 100
make[3]: *** [build] Error 1
make[2]: *** [build-file] Error 2
make[1]: *** [build/nso-install-files/nso-6.2.linux.x86_64.installer.bin] Error 2
make: *** [all] Error 2
➜ nso-docker git:(master) ✗ ls -la nso-install-files
total 526720
drwxr-xr-x@ 3 rich staff 96 18 Feb 16:57 .
drwxr-xr-x@ 15 rich staff 480 18 Feb 16:55 ..
-rwxr-xr-x@ 1 rich staff 269677741 16 Nov 10:15 nso-6.2.linux.x86_64.installer.bin
➜ nso-docker git:(master) ✗
02-20-2024 02:09 AM
Hi,
tl;dr : Consider the https://developer.cisco.com/docs/nso/guides/#!containerized-nso to get pre made containers. If you prefer nso-docker, then get the latest version of nso-docker from https://gitlab.com/nso-developer/nso-docker and try again.
Ok, so the slightly longer discussion.
The problem is that one out of a long list of commands failed when you ran make.
Make ran the *build*,*build-file*, and then *build/nso-install-files/nso-6.2.linux.x86_64.installer.bin* targets in that order and in the last target there was a problem when the container was built.
The list of commands comes from the docker-images/Dockerfile and in there we do a bunch of stuff, one of them is the:
/bin/sh -c apt-get update && apt-get install -qy default-jre-headless iputils-ping less libexpat1 logrotate make openssh-client procps python3 tcpdump telnet xmlstarlet xsltproc && apt-get install -qy --no-install-recommends python3-pip && pip3 install debugpy && apt-get -qy purge python3-pip && apt-get -qy autoremove && apt-get clean && rm -rf /var/lib/apt/lists/* /root/.cache && echo '. /opt/ncs/current/ncsrc' >> /root/.bashrc && groupadd ncsadmin && usermod -a -G ncsadmin root && rm /etc/logrotate.d/* && find /etc/cron.daily/ -type f -not -name logrotate -exec rm {}
We don't know which one of these failed, and when I look at my docker-images/Dockerfile mine does not run the same commands. It works for me to build locally (on a Mac) and I see the *nso-docker* repositories have diverged between Gitlab and Github (they should be mirrored) so something might have happened.
So try and get the Gitlab version :git clone https://gitlab.com/nso-developer/nso-docker.git
But nso-docker was developed before we had the pre made NSO containers so you might not have go through all of this trouble. Take a look at the https://developer.cisco.com/docs/nso/guides/#!containerized-nso/containerized-nso
Hope that helps!
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide