diff options
author | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-27 14:56:06 +0200 |
---|---|---|
committer | Igor Ryzhov <iryzhov@nfware.com> | 2021-05-27 14:56:06 +0200 |
commit | bea8786a1c86465cc6eb5c4213e47b339a48e821 (patch) | |
tree | ba9e4a1c25cfd77dfc400203c4bed2d09198cb0b /docker | |
parent | Merge pull request #8751 from LabNConsulting/chopps/ly2-mainline (diff) | |
download | frr-bea8786a1c86465cc6eb5c4213e47b339a48e821.tar.xz frr-bea8786a1c86465cc6eb5c4213e47b339a48e821.zip |
Revert "build: libyangv2 is mainlined, update"
This partially reverts commit 250335d47cc338fa1951494a9b78bf429016a7e5.
Signed-off-by: Igor Ryzhov <iryzhov@nfware.com>
Diffstat (limited to 'docker')
-rw-r--r-- | docker/ubuntu18-ci/Dockerfile | 24 | ||||
-rw-r--r-- | docker/ubuntu20-ci/Dockerfile | 24 |
2 files changed, 32 insertions, 16 deletions
diff --git a/docker/ubuntu18-ci/Dockerfile b/docker/ubuntu18-ci/Dockerfile index cf75c3015..86fbe4f49 100644 --- a/docker/ubuntu18-ci/Dockerfile +++ b/docker/ubuntu18-ci/Dockerfile @@ -5,19 +5,13 @@ ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn # Update Ubuntu Software repository RUN apt update && \ apt-get install -y \ - git autoconf automake curl libtool make libreadline-dev texinfo \ + git autoconf automake libtool make libreadline-dev texinfo \ pkg-config libpam0g-dev libjson-c-dev bison flex python3-pytest \ libc-ares-dev python3-dev libsystemd-dev python-ipaddress python3-sphinx \ install-info build-essential libsystemd-dev libsnmp-dev perl libcap-dev \ libelf-dev \ sudo gdb iputils-ping time \ - mininet python-pip iproute2 iperf libpcre2-dev \ - libpcre3-dev \ - && \ - curl -fLO https://ci1.netdef.org/artifact/LIBYANG-LIBYANGV2/shared/build-2/Ubuntu-18.04-x86_64-Packages/libyang2_2.0.0.10.g2eb910e4-1_amd64.deb && \ - curl -fLO https://ci1.netdef.org/artifact/LIBYANG-LIBYANGV2/shared/build-2/Ubuntu-18.04-x86_64-Packages/libyang2-dev_2.0.0.10.g2eb910e4-1_amd64.deb && \ - dpkg -i libyang2_2.0.0.10.g2eb910e4-1_amd64.deb libyang2-dev_2.0.0.10.g2eb910e4-1_amd64.deb && \ - rm -f libyang2_2.0.0.10.g2eb910e4-1_amd64.deb libyang2-dev_2.0.0.10.g2eb910e4-1_amd64.deb && \ + mininet python-pip iproute2 iperf && \ pip install ipaddr && \ pip install "pytest<5" && \ pip install "scapy>=2.4.2" && \ @@ -32,8 +26,22 @@ RUN groupadd -r -g 92 frr && \ echo 'frr ALL = NOPASSWD: ALL' | tee /etc/sudoers.d/frr && \ mkdir -p /home/frr && chown frr.frr /home/frr +#for libyang 2 +RUN apt-get install -y cmake libpcre2-dev + USER frr:frr +# build and install libyang1 +RUN cd && pwd && ls -al && \ + git clone https://github.com/CESNET/libyang.git -b libyang2 && \ + cd libyang && \ + git checkout v2.0.0 && \ + mkdir build; cd build && \ + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_BUILD_TYPE:String="Release" .. && \ + make -j $(nproc) && \ + sudo make install + COPY --chown=frr:frr . /home/frr/frr/ RUN cd && ls -al && ls -al frr diff --git a/docker/ubuntu20-ci/Dockerfile b/docker/ubuntu20-ci/Dockerfile index 8a4a156a5..ead5c56c5 100644 --- a/docker/ubuntu20-ci/Dockerfile +++ b/docker/ubuntu20-ci/Dockerfile @@ -5,19 +5,13 @@ ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn # Update Ubuntu Software repository RUN apt update && \ apt-get install -y \ - git autoconf automake curl libtool make libreadline-dev texinfo \ + git autoconf automake libtool make libreadline-dev texinfo \ pkg-config libpam0g-dev libjson-c-dev bison flex python3-pytest \ libc-ares-dev python3-dev libsystemd-dev python-ipaddress python3-sphinx \ install-info build-essential libsystemd-dev libsnmp-dev perl \ libcap-dev python2 libelf-dev \ sudo gdb curl iputils-ping time \ - mininet iproute2 iperf libpcre2-dev \ - libpcre3-dev \ - && \ - curl -fLO https://ci1.netdef.org/artifact/LIBYANG-LIBYANGV2/shared/build-2/Ubuntu-20.04-x86_64-Packages/libyang2_2.0.0.10.g2eb910e4-1_amd64.deb && \ - curl -fLO https://ci1.netdef.org/artifact/LIBYANG-LIBYANGV2/shared/build-2/Ubuntu-20.04-x86_64-Packages/libyang2-dev_2.0.0.10.g2eb910e4-1_amd64.deb && \ - dpkg -i libyang2_2.0.0.10.g2eb910e4-1_amd64.deb libyang2-dev_2.0.0.10.g2eb910e4-1_amd64.deb && \ - rm -f libyang2_2.0.0.10.g2eb910e4-1_amd64.deb libyang2-dev_2.0.0.10.g2eb910e4-1_amd64.deb && \ + mininet iproute2 iperf && \ curl https://bootstrap.pypa.io/pip/2.7/get-pip.py --output /tmp/get-pip.py && \ python2 /tmp/get-pip.py && \ rm -f /tmp/get-pip.py && \ @@ -35,8 +29,22 @@ RUN groupadd -r -g 92 frr && \ echo 'frr ALL = NOPASSWD: ALL' | tee /etc/sudoers.d/frr && \ mkdir -p /home/frr && chown frr.frr /home/frr +#for libyang 2 +RUN apt-get install -y cmake libpcre2-dev + USER frr:frr +# build and install libyang1 +RUN cd && pwd && ls -al && \ + git clone https://github.com/CESNET/libyang.git -b libyang2 && \ + cd libyang && \ + git checkout v2.0.0 && \ + mkdir build; cd build && \ + cmake -DCMAKE_INSTALL_PREFIX:PATH=/usr \ + -DCMAKE_BUILD_TYPE:String="Release" .. && \ + make -j $(nproc) && \ + sudo make install + COPY --chown=frr:frr . /home/frr/frr/ RUN cd && ls -al && ls -al frr |