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 python3-stdeb python3-setuptools python3-all python-all \
12 python3-bitarray python3-regex python3-lxml debhelper dh-python tox wget \
14 && pip3 install pip==9.0.3 \
15 && pip3 install -U aiokafka pyang lxml six enum34
17 RUN git clone https://osm.etsi.org/gerrit/osm/N2VC.git \
19 && pip3 install websockets==4.0.1 \
20 && pip3 install requests \
21 && cd modules/libjuju && python3 setup.py develop && cd ../.. \
22 && pip3 install -U -r requirements.txt \
23 && python3 setup.py develop \
26 RUN git clone https://osm.etsi.org/gerrit/osm/common.git \
27 && cd common && python3 setup.py develop && cd ..
28 # && pip3 install -U -r requirements.txt \
31 RUN mkdir -p /app/storage/kafka && mkdir -p /app/log
34 LABEL Maintainer="alfonso.tiernosepulveda@telefonica.com" \
35 Description="This implements the Life Cicle Management module of OSM" \
37 Author="Alfonso Tierno"
39 # Used for local storage
44 # The following ENV can be added with "docker run -e xxx' to configure LCM
46 ENV OSMLCM_RO_PORT 9090
47 ENV OSMLCM_RO_TENANT osm
50 ENV OSMLCM_VCA_HOST vca
51 ENV OSMLCM_VCA_PORT: 17070
52 ENV OSMLCM_VCA_USER: admin
53 ENV OSMLCM_VCA_SECRET: secret
56 ENV OSMLCM_DATABASE_DRIVER mongo
57 ENV OSMLCM_DATABASE_HOST mongo
58 ENV OSMLCM_DATABASE_PORT 27017
59 ENV OSMLCM_STORAGE_DRIVER local
60 ENV OSMLCM_STORAGE_PATH /app/storage
63 ENV OSMLCM_MESSAGE_DRIVER kafka
64 ENV OSMLCM_MESSAGE_HOST kafka
65 ENV OSMLCM_MESSAGE_PORT 9092
68 ENV OSMLCM_GLOBAL_LOGFILE /app/log/lcm.log
69 ENV OSMLCM_GLOBAL_LOGLEVEL DEBUG
71 # Run app.py when the container launches
72 CMD ["python3", "lcm.py"]