summaryrefslogtreecommitdiff
path: root/docker
diff options
context:
space:
mode:
authorChristian Poessinger <christian@poessinger.com>2019-04-09 20:14:26 +0200
committerChristian Poessinger <christian@poessinger.com>2019-04-09 20:15:14 +0200
commit8d8a1a7a39811cf0d0f8dcaca65d97da67e779fa (patch)
tree5765e8137b305484215b3300ce8f2ef96d0eb1c3 /docker
parentdce9b82bd1bfa778572ad712ddeab3a7b06d3545 (diff)
downloadvyos-build-8d8a1a7a39811cf0d0f8dcaca65d97da67e779fa.tar.gz
vyos-build-8d8a1a7a39811cf0d0f8dcaca65d97da67e779fa.zip
Docker: use libyang from VyOS project reposi
Diffstat (limited to 'docker')
-rw-r--r--docker/Dockerfile17
-rw-r--r--docker/sources.list1
-rw-r--r--docker/vyos-dev.key32
3 files changed, 41 insertions, 9 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile
index 81fa2554..36895335 100644
--- a/docker/Dockerfile
+++ b/docker/Dockerfile
@@ -23,6 +23,9 @@ ENV DEBIAN_FRONTEND noninteractive
COPY sources.list /etc/apt/sources.list
COPY no--check-valid-until /etc/apt/apt.conf.d/
+COPY vyos-dev.key /tmp/vyos-dev.key
+
+RUN apt-key add /tmp/vyos-dev.key
# Standard shell should be bash not dash
RUN echo "dash dash/sh boolean false" | debconf-set-selections && \
@@ -184,17 +187,13 @@ RUN export RTRLIB_VERSION="0.6.3" && \
cd /tmp/rtrlib-${RTRLIB_VERSION} && dpkg-buildpackage -uc -us -tc -b && \
dpkg -i ../librtr*_amd64.deb ../librtr*_all.deb
-# FRR depends on the relatively new libyang library to provide YANG/NETCONF
-# support. Unfortunately, most distributions do not yet offer a libyang package
-# from their repositories. Use prebuild libyang packages
-#
-# https://github.com/FRRouting/frr/blob/master/doc/developer/building-libyang.rst
-RUN wget -P /tmp https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-8/Debian-AMD64-Packages/libyang-dev_0.16.105-1_amd64.deb && \
- wget -P /tmp https://ci1.netdef.org/artifact/LIBYANG-YANGRELEASE/shared/build-8/Debian-AMD64-Packages/libyang0.16_0.16.105-1_amd64.deb && \
- dpkg -i /tmp/libyang*_amd64.deb
-
# Packages needed to build frr itself
+# libyang-dev packages are hsoted on dev.packages.vyos.net see
+# https://github.com/FRRouting/frr/blob/master/doc/developer/building-libyang.rst
+# for more info
RUN apt-get update && apt-get install -y \
+ libyang-dev \
+ libyang0.16 \
chrpath \
install-info \
libjson-c-dev \
diff --git a/docker/sources.list b/docker/sources.list
index 9d0fa506..ec827988 100644
--- a/docker/sources.list
+++ b/docker/sources.list
@@ -1,3 +1,4 @@
deb http://deb.debian.org/debian/ jessie main
deb http://deb.debian.org/debian-security/ jessie/updates main
deb http://archive.debian.org/debian/ jessie-backports main
+deb http://dev.packages.vyos.net/repositories/current/debian/ current main
diff --git a/docker/vyos-dev.key b/docker/vyos-dev.key
new file mode 100644
index 00000000..a6522e36
--- /dev/null
+++ b/docker/vyos-dev.key
@@ -0,0 +1,32 @@
+-----BEGIN PGP PUBLIC KEY BLOCK-----
+Version: GnuPG v1.4.12 (GNU/Linux)
+
+mQENBFOQPGwBCADjm8Oq3kaJQh0rI33XVfd9mNq5ffay884SlDCbG1hkLVf8tnGV
+cjH7/nFfJdW/6Gr4dj4LQuHHnin5QeWnlHfuOySlOEsJCNP5dm14oEjy7epSXOv2
+A3m2tPDDqwMgfrOyw1gN+Clit9QIujiRzbcakqearyNxcVNvinIVunNiWbAyIhvc
+uI6yfMjno4q/O83c7e1zBqJj9t9guQjBuqaJrmZVf985/6ue9yWzSI4JtzxVmhKI
+dfCxHWE7BiEt2hnZPSVGcb4q6cBrkpcra7Ny55eoyN51wQGokPv3a9/8b3r5speR
+gene2MTvD/3eZOtTvMN000f/gJX4E6o8xx+fABEBAAG0R1Z5T1MgTWFpbnRhaW5l
+cnMgKERldmVsb3BtZW50IGFuZCB0ZXN0aW5nIHJlcG9zKSA8bWFpbnRhaW5lcnNA
+dnlvcy5uZXQ+iQE4BBMBAgAiBQJTkDxsAhsD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