blob: 73adb2b9be1a2eaeecae26df93e28292bdce0dfe [file] [log] [blame]
garciadeblas0cb7df32018-02-07 03:22:37 +01001from ubuntu:xenial
2
3MAINTAINER Gennadiy Dubina <gennadiy.dubina@dataat.com>; Alfonso Tierno <alfonso.tiernosepulveda@telefoncia.com>
4
5#avoid extra information from packages
6RUN echo 'path-exclude /usr/share/doc/*\n\
7path-include /usr/share/doc/*/copyright\n\
8path-exclude /usr/share/man/*\n\
9path-exclude /usr/share/groff/*\n\
10path-exclude /usr/share/info/*\n\
11path-exclude /usr/share/lintian/*\n\
12path-exclude /usr/share/linda/*\n'\
13> /etc/dpkg/dpkg.cfg.d/01_nodoc && \
14 echo 'APT::Install-Recommends "false";\n\
15APT::AutoRemove::RecommendsImportant "false";\n\
16APT::AutoRemove::SuggestsImportant "false";\n'\
17> /etc/apt/apt.conf.d/99_norecommends
18
19
garciadeblasc9cba062018-04-17 18:06:23 +020020RUN apt-get update && apt-get install -y curl mysql-client software-properties-common \
garciadeblas0cb7df32018-02-07 03:22:37 +010021 && add-apt-repository -y "deb http://osm-download.etsi.org/repository/osm/debian/ReleaseTHREE stable SO UI RO IM osmclient openvim" \
22 && curl "http://osm-download.etsi.org/repository/osm/debian/ReleaseTHREE/OSM%20ETSI%20Release%20Key.gpg" | apt-key add - \
garciadeblasc9cba062018-04-17 18:06:23 +020023 && apt-get update \
24 && apt-get install -y python-osm-ro \
garciadeblas0cb7df32018-02-07 03:22:37 +010025 && rm -rf /var/lib/apt/lists/* \
26 && mkdir -p /bin/RO
27
28
garciadeblas0cb7df32018-02-07 03:22:37 +010029VOLUME /opt/openmano/logs
30
31EXPOSE 9090
32
33# Two mysql databases are needed (DB and DB_OVIM). Can be hosted on same or separated containers
34# These ENV must be provided
35ENV RO_DB_HOST=""
36ENV RO_DB_OVIM_HOST=""
37 # if empty RO_DB_HOST is assumed
38
39# These ENV should be provided first time for creating database. It will create and init only if empty!
40ENV RO_DB_ROOT_PASSWORD=""
41ENV RO_DB_OVIM_ROOT_PASSWORD=""
42 # if empty RO_DB_ROOT_PASSWORD is assumed
43
44# These ENV can be provided, but default values are ok
45ENV RO_DB_USER=mano
46ENV RO_DB_OVIM_USER=mano
47ENV RO_DB_PASSWORD=manopw
48ENV RO_DB_OVIM_PASSWORD=manopw
49ENV RO_DB_PORT=3306
50ENV RO_DB_OVIM_PORT=3306
51ENV RO_DB_NAME=mano_db
52ENV RO_DB_OVIM_NAME=mano_vim_db
53
54
tiernoaf0017f2018-09-12 16:25:42 +020055CMD RO-start.sh
garciadeblas0cb7df32018-02-07 03:22:37 +010056