blob: 9ea5b3efb4b6f637228df9d88465af0ca16be8c9 [file] [log] [blame]
Mike Marchettie6b95092018-09-05 09:52:42 -04001# Copyright 2018 Whitestack, LLC
2# *************************************************************
3
4# This file is part of OSM Monitoring module
5# All Rights Reserved to Whitestack, LLC
6
7# Licensed under the Apache License, Version 2.0 (the "License"); you may
8# not use this file except in compliance with the License. You may obtain
9# a copy of the License at
10
11# http://www.apache.org/licenses/LICENSE-2.0
12
13# Unless required by applicable law or agreed to in writing, software
14# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
15# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
16# License for the specific language governing permissions and limitations
17# under the License.
18
19# For those usages not covered by the Apache License, Version 2.0 please
20# contact: bdiaz@whitestack.com or glavado@whitestack.com
21##
22
23FROM ubuntu:16.04
24
25LABEL authors="Guillermo Calvino"
26
27RUN apt-get update && apt-get -y install curl software-properties-common
28
29ARG REPOSITORY_BASE=http://osm-download.etsi.org/repository/osm/debian
30ARG RELEASE=ReleaseFOUR-daily
31ARG REPOSITORY_KEY=OSM%20ETSI%20Release%20Key.gpg
32ARG REPOSITORY=testing
33
34RUN curl ${REPOSITORY_BASE}/${RELEASE}/${REPOSITORY_KEY} | apt-key add -
35RUN add-apt-repository -y "deb ${REPOSITORY_BASE}/${RELEASE} ${REPOSITORY} MON IM common" && apt update
36
37RUN apt-get --yes update \
38 && apt-get --yes install git python python-pip python3 python3-pip libmysqlclient-dev libssl-dev libffi-dev \
39 && pip3 install pip==9.0.3
40
41RUN apt-get --yes update && apt-get -y install python3-osm-common python3-osm-mon
42
43COPY scripts/ scripts/
44
45RUN pip3 install -r scripts/requirements.txt
46
47# These ENV must be provided
48# ENV BROKER_URI=kafka:9092
49# ENV OS_NOTIFIER_URI=<IP_ACCESIBLE_FROM_OPENSTACK>:8662
50
51EXPOSE 8662
52
53CMD /bin/bash scripts/runInstall.sh