Initial seed file for MDG dockerfiles
[osm/devops.git] / docker / RO / Dockerfile
1 from ubuntu:xenial
2
3 MAINTAINER Gennadiy Dubina <gennadiy.dubina@dataat.com>; Alfonso Tierno <alfonso.tiernosepulveda@telefoncia.com>
4
5 RUN apt-get update && apt-get -y install curl software-properties-common
6
7 ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
8 ARG RELEASE=ReleaseFOUR-daily
9 ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
10 ARG REPOSITORY=testing
11
12 RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add -
13 RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} RO IM common openvim" && apt update
14
15 RUN apt-get update && apt-get install -y python-setuptools python-wheel mysql-client python-bitarray
16 RUN apt-get update && apt-get install -y python-osm-ro python-osm-im
17
18 RUN mkdir -p /bin/RO
19
20 COPY scripts/ /bin/RO
21
22 VOLUME /opt/openmano/logs
23
24 EXPOSE 9090
25
26 # Two mysql databases are needed (DB and DB_OVIM). Can be hosted on same or separated containers
27 # These ENV must be provided
28 ENV RO_DB_HOST=""
29 ENV RO_DB_OVIM_HOST=""
30     # if empty RO_DB_HOST is assumed
31
32 # These ENV should be provided first time for creating database. It will create and init only if empty!
33 ENV RO_DB_ROOT_PASSWORD=""
34 ENV RO_DB_OVIM_ROOT_PASSWORD=""
35     # if empty RO_DB_ROOT_PASSWORD is assumed
36
37 # These ENV can be provided, but default values are ok
38 ENV RO_DB_USER=mano
39 ENV RO_DB_OVIM_USER=mano
40 ENV RO_DB_PASSWORD=manopw
41 ENV RO_DB_OVIM_PASSWORD=manopw
42 ENV RO_DB_PORT=3306
43 ENV RO_DB_OVIM_PORT=3306
44 ENV RO_DB_NAME=mano_db
45 ENV RO_DB_OVIM_NAME=mano_vim_db
46
47 CMD /bin/RO/start.sh