From 0ba8fed3efa4f60d94413fa789bed8a659db6767 Mon Sep 17 00:00:00 2001 From: Adam Israel Date: Tue, 22 May 2018 10:05:24 -0400 Subject: [PATCH] Fix Docker build This fixes the docker build, that was failing while installing N2VC due to a new version of websockets that was released. We specifically install the latest 4.x release of websockets, known to be compatible with libjuju, in conjunction with a patch to N2VC that specifies the version requirement. Installing the specific version is necessary because websockets is being installed as a dependency to another python library that is installing 5.0, but installing 4.1 satisfies its requirements. Change-Id: I390b2c3663f21b29e8527783d153127ca405ea8e Signed-off-by: Adam Israel --- Dockerfile.local | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Dockerfile.local b/Dockerfile.local index b3343e5..162642a 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -16,6 +16,8 @@ RUN apt-get update && apt-get install -y git python3 \ RUN git clone https://osm.etsi.org/gerrit/osm/N2VC.git \ && cd N2VC \ + && pip3 install websockets==4.0.1 \ + && pip3 install requests \ && cd modules/libjuju && python3 setup.py develop && cd ../.. \ && pip3 install -U -r requirements.txt \ && python3 setup.py develop \ -- 2.25.1