X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=lcm%2FDockerfile;h=68f624770f89c7101a631dacd9f4f79f53d6f4fc;hb=354ead997790f4347c6256c1e703f49a6b412512;hp=f27dadf48f2a35c29c1c042615cfcff9709eb65b;hpb=f3c4dbc42e206bcc0d4d3369f6d0d156d7ffe669;p=osm%2FRO.git diff --git a/lcm/Dockerfile b/lcm/Dockerfile index f27dadf4..68f62477 100644 --- a/lcm/Dockerfile +++ b/lcm/Dockerfile @@ -6,17 +6,29 @@ WORKDIR /app/osm_lcm # Copy the current directory contents into the container at /app ADD . /app -RUN apt update && apt install -y git python3 \ +RUN apt-get update && apt-get install -y git python3 \ python3-pip python3-pymongo python3-yaml python3-aiohttp \ - && pip3 install aiokafka \ - && mkdir -p /app/storage/kafka && mkdir -p /app/log + python3-stdeb python3-setuptools python3-all python-all \ + python3-bitarray python3-regex python3-lxml debhelper dh-python tox wget \ + python3-cffi \ + && pip3 install -U aiokafka pyang lxml six enum34 +RUN git clone https://osm.etsi.org/gerrit/osm/N2VC.git \ + && cd N2VC \ + && git fetch https://osm.etsi.org/gerrit/osm/N2VC refs/changes/70/5870/46 \ + && git checkout FETCH_HEAD \ + && cd modules/libjuju && python3 setup.py develop && cd ../.. \ + && pip3 install -U -r requirements.txt \ + && python3 setup.py develop \ + && cd .. + +RUN mkdir -p /app/storage/kafka && mkdir -p /app/log LABEL Maintainer="alfonso.tiernosepulveda@telefonica.com" \ Description="This implements a north bound interface for OSM" \ - Version="1.0" - # Author="Alfonso Tierno" + Version="1.0" \ + Author="Alfonso Tierno" # Used for local storage VOLUME /app/storage @@ -50,4 +62,3 @@ ENV OSMLCM_MESSAGE_PORT 9092 ENV PYTHONPATH /app/osm_common # Run app.py when the container launches CMD ["python3", "lcm.py"] -