summaryrefslogtreecommitdiffstats
path: root/docker
diff options
context:
space:
mode:
authorChristian Hopps <chopps@gmail.com>2021-05-27 12:28:01 +0200
committerChristian Hopps <chopps@labn.net>2021-05-27 12:44:39 +0200
commit250335d47cc338fa1951494a9b78bf429016a7e5 (patch)
treeefa43551c540e42807e6eb470c24cdd21006fc07 /docker
parentMerge pull request #8738 from gromit1811/bugfix_ospf6_set_tag (diff)
downloadfrr-250335d47cc338fa1951494a9b78bf429016a7e5.tar.xz
frr-250335d47cc338fa1951494a9b78bf429016a7e5.zip
build: libyangv2 is mainlined, update
Signed-off-by: Christian Hopps <chopps@gmail.com>
Diffstat (limited to 'docker')
-rw-r--r--docker/ubuntu18-ci/Dockerfile24
-rw-r--r--docker/ubuntu20-ci/Dockerfile24
2 files changed, 16 insertions, 32 deletions
diff --git a/docker/ubuntu18-ci/Dockerfile b/docker/ubuntu18-ci/Dockerfile
index 86fbe4f49..cf75c3015 100644
--- a/docker/ubuntu18-ci/Dockerfile
+++ b/docker/ubuntu18-ci/Dockerfile
@@ -5,13 +5,19 @@ ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
# Update Ubuntu Software repository
RUN apt update && \
apt-get install -y \
- git autoconf automake libtool make libreadline-dev texinfo \
+ git autoconf automake curl 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 && \
+ 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 && \
pip install ipaddr && \
pip install "pytest<5" && \
pip install "scapy>=2.4.2" && \
@@ -26,22 +32,8 @@ 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 ead5c56c5..8a4a156a5 100644
--- a/docker/ubuntu20-ci/Dockerfile
+++ b/docker/ubuntu20-ci/Dockerfile
@@ -5,13 +5,19 @@ ENV APT_KEY_DONT_WARN_ON_DANGEROUS_USAGE=DontWarn
# Update Ubuntu Software repository
RUN apt update && \
apt-get install -y \
- git autoconf automake libtool make libreadline-dev texinfo \
+ git autoconf automake curl 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 && \
+ 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 && \
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 && \
@@ -29,22 +35,8 @@ 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