Updated Dockerfiles and postinst for RO and LCM to use pip-9.0.3
Also replaces apt by apt-get in Dockerfiles
Change-Id: I54c8c45745e0550878d05f3c386ea7d633b50786
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/docker/Dockerfile-fromdeb b/docker/Dockerfile-fromdeb
index 08e3f23..de01e39 100644
--- a/docker/Dockerfile-fromdeb
+++ b/docker/Dockerfile-fromdeb
@@ -17,11 +17,11 @@
> /etc/apt/apt.conf.d/99_norecommends
-RUN apt update && apt install -y curl mysql-client software-properties-common \
+RUN apt-get update && apt-get install -y curl mysql-client software-properties-common \
&& add-apt-repository -y "deb http://osm-download.etsi.org/repository/osm/debian/ReleaseTHREE stable SO UI RO IM osmclient openvim" \
&& curl "http://osm-download.etsi.org/repository/osm/debian/ReleaseTHREE/OSM%20ETSI%20Release%20Key.gpg" | apt-key add - \
- && apt update \
- && apt install -y python-osm-ro \
+ && apt-get update \
+ && apt-get install -y python-osm-ro \
&& rm -rf /var/lib/apt/lists/* \
&& mkdir -p /bin/RO
diff --git a/docker/Dockerfile-local b/docker/Dockerfile-local
index caf104b..67a3ca9 100644
--- a/docker/Dockerfile-local
+++ b/docker/Dockerfile-local
@@ -12,7 +12,7 @@
DEBIAN_FRONTEND=noninteractive add-apt-repository -y cloud-archive:ocata && \
DEBIAN_FRONTEND=noninteractive apt-get -y install git make python python-pip debhelper && \
DEBIAN_FRONTEND=noninteractive apt-get -y install wget tox && \
- DEBIAN_FRONTEND=noninteractive pip install -U pip && \
+ DEBIAN_FRONTEND=noninteractive pip install pip==9.0.3 && \
DEBIAN_FRONTEND=noninteractive pip install -U setuptools setuptools-version-command stdeb && \
DEBIAN_FRONTEND=noninteractive pip install -U pyang pyangbind && \
DEBIAN_FRONTEND=noninteractive apt-get -y install python-yaml python-netaddr python-boto && \