Fix Dockerfile.local in v4.0 branch to use common and IM from v4.0
Change-Id: Ia3cf80b9d02ad40c888be79547ddeb223d7191d2
Signed-off-by: garciadeblas <gerardo.garciadeblas@telefonica.com>
diff --git a/Dockerfile.local b/Dockerfile.local
index 1ec838a..f3512c9 100644
--- a/Dockerfile.local
+++ b/Dockerfile.local
@@ -16,7 +16,7 @@
# OSM_COMMON
RUN git clone https://osm.etsi.org/gerrit/osm/common.git \
- && cd common && python3 setup.py develop && cd ..
+ && cd common && git checkout v4.0 && python3 setup.py develop && cd ..
# && pip3 install -U -r requirements.txt \
# && cd ..
@@ -25,6 +25,7 @@
&& git clone https://github.com/robshakir/pyangbind \
&& pip3 install -e pyangbind \
&& git clone https://osm.etsi.org/gerrit/osm/IM \
+ && git -C IM checkout v4.0 \
&& cd /app/IM/models/yang \
&& pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -o /app/osm_nbi/vnfd_catalog.py vnfd.yang \
&& pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -o /app/osm_nbi/nsd_catalog.py nsd.yang
diff --git a/setup.py b/setup.py
index 68aa1fc..24c72d5 100644
--- a/setup.py
+++ b/setup.py
@@ -15,7 +15,7 @@
name=_name,
description='OSM North Bound Interface',
long_description=README,
- version_command=('git describe --tags --long --dirty --match v*', 'pep440-git'),
+ version_command=('git describe --match v* --tags --long --dirty', 'pep440-git-full'),
# version=VERSION,
# python_requires='>3.5.0',
author='ETSI OSM',