From: garciadeblas Date: Tue, 2 Oct 2018 10:34:18 +0000 (+0200) Subject: Fix Dockerfile.local in v4.0 branch to use common and IM from v4.0 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=9de57444f3d2eb09ba2c08bf6bbc037bc33bba3d;p=osm%2FNBI.git Fix Dockerfile.local in v4.0 branch to use common and IM from v4.0 Change-Id: Ia3cf80b9d02ad40c888be79547ddeb223d7191d2 Signed-off-by: garciadeblas --- diff --git a/Dockerfile.local b/Dockerfile.local index 1ec838a..f3512c9 100644 --- a/Dockerfile.local +++ b/Dockerfile.local @@ -16,7 +16,7 @@ RUN apt-get update && apt-get install -y git python3 python3-jsonschema \ # 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 @@ RUN pip3 install pyang && mkdir -p /app && cd /app \ && 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 @@ setup( 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',