RUN apt-get update && apt-get install -y git python3 python3-jsonschema \
python3-pymongo python3-yaml python3-pip python3-keystoneclient \
&& pip3 install pip==9.0.3 \
- && pip3 install aiokafka aiohttp cherrypy==18.0.0 keystoneauth1 requests \
+ && pip3 install aiokafka aiohttp cherrypy==18.1.2 keystoneauth1 requests \
&& mkdir -p /app/storage/kafka && mkdir -p /app/log
# OSM_COMMON
&& git -C /app clone https://github.com/robshakir/pyangbind \
&& pip3 install -e /app/pyangbind \
&& git -C /app clone https://osm.etsi.org/gerrit/osm/IM \
- && cd /app/IM/models/yang \
- && mkdir /app/IM/osm_im \
- && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -o /app/IM/osm_im/vnfd.py vnfd.yang \
- && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -o /app/IM/osm_im/nsd.py nsd.yang \
- && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -o /app/IM/osm_im/nst.py nst.yang \
+ && mkdir -p /app/IM/osm_im \
+ && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -p /app/IM/models/yang \
+ -o /app/IM/osm_im/vnfd.py /app/IM/models/yang/vnfd.yang \
+ && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -p /app/IM/models/yang \
+ -o /app/IM/osm_im/nsd.py /app/IM/models/yang/nsd.yang \
+ && pyang --plugindir /app/pyangbind/pyangbind/plugin -f pybind -p /app/IM/models/yang \
+ -o /app/IM/osm_im/nst.py /app/IM/models/yang/nst.yang \
&& pip3 install -e /app/IM
EXPOSE 9999