blob: de01e39b81796970452c26cb3f9722e2d460b2d4 [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
29COPY docker/scripts/ /bin/RO
30
31VOLUME /opt/openmano/logs
32
33EXPOSE 9090
34
35# Two mysql databases are needed (DB and DB_OVIM). Can be hosted on same or separated containers
36# These ENV must be provided
37ENV RO_DB_HOST=""
38ENV RO_DB_OVIM_HOST=""
39 # if empty RO_DB_HOST is assumed
40
41# These ENV should be provided first time for creating database. It will create and init only if empty!
42ENV RO_DB_ROOT_PASSWORD=""
43ENV RO_DB_OVIM_ROOT_PASSWORD=""
44 # if empty RO_DB_ROOT_PASSWORD is assumed
45
46# These ENV can be provided, but default values are ok
47ENV RO_DB_USER=mano
48ENV RO_DB_OVIM_USER=mano
49ENV RO_DB_PASSWORD=manopw
50ENV RO_DB_OVIM_PASSWORD=manopw
51ENV RO_DB_PORT=3306
52ENV RO_DB_OVIM_PORT=3306
53ENV RO_DB_NAME=mano_db
54ENV RO_DB_OVIM_NAME=mano_vim_db
55
56
57CMD /bin/RO/start.sh
58