Update Dockerfile.local to work with cloned common and N2VC
[osm/LCM.git] / Dockerfile.local
index ce1178a..d57235b 100644 (file)
@@ -54,6 +54,10 @@ RUN git -C /app clone https://osm.etsi.org/gerrit/osm/common.git \
     && python3 -m pip install -e /app/common
     #  python3-pymongo python3-yaml pycrypto aiokafka
 
+RUN python3 -m pip install \
+    -r /app/common/requirements.txt \
+    -r /app/N2VC/requirements.txt
+
 RUN python3 -m pip install grpcio-tools grpclib
 
 RUN mkdir -p /app/storage/kafka && mkdir -p /app/log
@@ -97,12 +101,12 @@ ENV OSMLCM_DATABASE_URI mongodb://mongo:27017
 # ENV OSMLCM_DATABASE_USER  xxx
 # ENV OSMLCM_DATABASE_PASSWORD  xxx
 
-#storage
+# storage
 ENV OSMLCM_STORAGE_DRIVER                       local
 ENV OSMLCM_STORAGE_PATH                         /app/storage
-#ENV OSMLCM_STORAGE_DRIVER                       mongo
-#ENV OSMNBI_STORAGE_URI                          mongodb://mongo:27017
-#ENV OSMLCM_STORAGE_COLLECTION                   files
+# ENV OSMLCM_STORAGE_DRIVER                       mongo
+# ENV OSMLCM_STORAGE_URI                          mongodb://mongo:27017
+# ENV OSMLCM_STORAGE_COLLECTION                   files
 
 # message
 ENV OSMLCM_MESSAGE_DRIVER  kafka
@@ -125,6 +129,9 @@ ENV OSMLCM_GLOBAL_LOGLEVEL DEBUG
 # Copy the current directory contents into the container at /app/LCM
 ADD . /app/LCM
 
+RUN python3 -m pip install \
+    -r requirements.txt
+
 # Run app.py when the container launches
 CMD python3 -m osm_lcm.lcm