diff options
author | Christian Poessinger <christian@poessinger.com> | 2019-12-18 20:10:31 +0100 |
---|---|---|
committer | Christian Poessinger <christian@poessinger.com> | 2019-12-18 20:10:31 +0100 |
commit | f2d457a9ed089995783207574699ec98c6956291 (patch) | |
tree | d965c941ccd4a046cf33263f1c0243c387a22c3b /docker | |
parent | 1982adbcb7386cfb18ede22bea492d98cf503660 (diff) | |
download | vyos-build-f2d457a9ed089995783207574699ec98c6956291.tar.gz vyos-build-f2d457a9ed089995783207574699ec98c6956291.zip |
Docker: build libyang from source
Diffstat (limited to 'docker')
-rw-r--r-- | docker/Dockerfile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/docker/Dockerfile b/docker/Dockerfile index 7394434a..2765fe47 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -173,7 +173,7 @@ RUN apt-get update && apt-get install -y \ # Packages needed for vyos-qat RUN apt-get update && apt-get install -y \ libboost-dev \ - libudev-dev + libudev-dev # Prerequisites for building rtrlib # see http://docs.frrouting.org/projects/dev-guide/en/latest/building-frr-for-debian8.html @@ -198,13 +198,19 @@ RUN apt-key add /tmp/vyos-dev.key RUN echo "deb http://dev.packages.vyos.net/repositories/crux/debian/ crux main" \ > /etc/apt/sources.list.d/vyos.list +RUN export LIBYANG_COMMIT="179da47f2e8def1907372408a9df97a0dcbc1347" && \ + wget -P /tmp https://github.com/opensourcerouting/libyang/archive/${LIBYANG_COMMIT}.tar.gz && \ + tar xf /tmp/${LIBYANG_COMMIT}.tar.gz && \ + cd libyang-${LIBYANG_COMMIT} && \ + mkdir build && cd build && \ + cmake .. && make build-deb && \ + dpkg -i debs/*.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 \ |