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 install -y git python3 \
10 python3-pip python3-pymongo python3-yaml python3-aiohttp \
11 && pip3 install aiokafka \
12 && mkdir -p /app/storage/kafka && mkdir -p /app/log
16 LABEL Maintainer="alfonso.tiernosepulveda@telefonica.com" \
17 Description="This implements a north bound interface for OSM" \
19 # Author="Alfonso Tierno"
21 # Used for local storage
26 # The following ENV can be added with "docker run -e xxx' to configure
29 ENV OSMLCM_RO_PORT 9090
30 ENV OSMLCM_RO_TENANT osm
33 ENV OSMLCM_VCA_HOST vca
34 ENV OSMLCM_VCA_PORT: 17070
35 ENV OSMLCM_VCA_USER: admin
36 ENV OSMLCM_VCA_SECRET: secret
39 ENV OSMLCM_DATABASE_DRIVER mongo
40 ENV OSMLCM_DATABASE_HOST mongo
41 ENV OSMLCM_DATABASE_PORT 27017
42 ENV OSMLCM_STORAGE_DRIVER local
43 ENV OSMLCM_STORAGE_PATH /app/storage
46 ENV OSMLCM_MESSAGE_DRIVER kafka
47 ENV OSMLCM_MESSAGE_HOST kafka
48 ENV OSMLCM_MESSAGE_PORT 9092
50 ENV PYTHONPATH /app/osm_common
51 # Run app.py when the container launches
52 CMD ["python3", "lcm.py"]