Adds ENV declarations to MON Dockerfile and sets corresponding defaults
[osm/devops.git] / docker / MON / Dockerfile
index 0da9c91..ca3d64b 100644 (file)
@@ -28,7 +28,7 @@ RUN apt-get update && apt-get -y install curl software-properties-common
 
 RUN apt-get --yes update \
  && apt-get --yes install git python python-pip python3 python3-pip libmysqlclient-dev libssl-dev libffi-dev \
- && pip3 install pip==9.0.3
+ && apt-get --yes install python3-pymongo && pip3 install pip==9.0.3
 
 ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
 ARG RELEASE=ReleaseFOUR-daily
@@ -47,9 +47,12 @@ COPY scripts/ scripts/
 
 RUN pip3 install -r scripts/requirements.txt
 
-# These ENV must be provided
-# ENV BROKER_URI=kafka:9092
-# ENV OS_NOTIFIER_URI=<IP_ACCESIBLE_FROM_OPENSTACK>:8662
+ENV BROKER_URI kafka:9092
+ENV MONGO_URI mongo:27017
+ENV DATABASE sqlite:///mon_sqlite.db
+ENV OS_NOTIFIER_URI localhost:8662
+ENV OS_DEFAULT_GRANULARITY 300
+ENV REQUEST_TIMEOUT 10
 
 EXPOSE 8662