From 4601b7fdb450f42d8a9b669c3ad7ef6841d5c4c5 Mon Sep 17 00:00:00 2001
From: Michal Vasko <mvasko@cesnet.cz>
Date: Thu, 6 Feb 2020 23:06:45 +0100
Subject: [PATCH] netconf container: fixed docker build by freezing versions of
 tools

---
 router-container/Dockerfile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/router-container/Dockerfile b/router-container/Dockerfile
index 56a9b94f..2819c264 100644
--- a/router-container/Dockerfile
+++ b/router-container/Dockerfile
@@ -52,7 +52,7 @@ RUN \
 
 # sysrepo
 RUN \
-      git clone https://github.com/sysrepo/sysrepo.git && \
+      git clone -b legacy https://github.com/sysrepo/sysrepo.git && \
       cd sysrepo && mkdir build && cd build && \
       cmake -DCMAKE_BUILD_TYPE:String="Debug" -DREQUEST_TIMEOUT=60 -DENABLE_TESTS=OFF -DREPOSITORY_LOC:PATH=/etc/sysrepo .. && \
       make -j2 && \
@@ -61,7 +61,7 @@ RUN \
 
 # libnetconf2
 RUN \
-      git clone https://github.com/CESNET/libnetconf2.git && \
+      git clone -b legacy https://github.com/CESNET/libnetconf2.git && \
       cd libnetconf2 && mkdir build && cd build && \
       cmake -DCMAKE_BUILD_TYPE:String="Debug" -DENABLE_BUILD_TESTS=OFF .. && \
       make -j2 && \
@@ -71,7 +71,7 @@ RUN \
 # netopeer2
 RUN \
       cd /opt/dev && \
-      git clone https://github.com/CESNET/Netopeer2.git && \
+      git clone -b legacy https://github.com/CESNET/Netopeer2.git && \
       cd Netopeer2/server && mkdir build && cd build && \
       cmake -DCMAKE_BUILD_TYPE:String="Debug" .. && \
       make -j2 && \
-- 
GitLab