3 # Set the working directory to /app
6 # Copy the current directory contents into the container at /app
9 RUN apt-get update && apt-get -y install git python3 python3-jsonschema \
10 python3-cherrypy3 python3-pymongo python3-yaml python3-pip \
11 && pip3 install aiokafka \
12 && mkdir -p /app/storage/kafka && mkdir -p /app/log
17 LABEL Maintainer="alfonso.tiernosepulveda@telefonica.com" \
18 Description="This implements a north bound interface for OSM" \
20 Author="Alfonso Tierno"
22 # Used for local storage
27 # The following ENV can be added with "docker run -e xxx' to configure
29 ENV OSMNBI_SOCKET_HOST 0.0.0.0
30 ENV OSMNBI_SOCKET_PORT 9999
32 ENV OSMNBI_STORAGE_PATH /app/storage
34 ENV OSMNBI_DATABASE_DRIVER mongo
35 ENV OSMNBI_DATABASE_HOST mongo
36 ENV OSMNBI_DATABASE_PORT 27017
38 ENV OSMNBI_STATIC_DIR /app/osm_nbi/html_public
40 ENV OSMNBI_LOG_FILE /app/log
41 ENV OSMNBI_LOG_LEVEL DEBUG
43 ENV OSMNBI_MESSAGE_DRIVER kafka
44 ENV OSMNBI_MESSAGE_HOST kafka
45 ENV OSMNBI_MESSAGE_PORT 9092
47 # Run app.py when the container launches
48 CMD ["python3", "nbi.py"]