X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=docker%2FDockerfile;h=b07f781897cf18da4902aada2fa52871f7b6ae4e;hb=b85fc8cdf840080b10d01c33b4a57a2a39bcc0f1;hp=e6adb491fa4f17ce3715fc75952eca89d60d2dd1;hpb=cbf9f4bcfccd322c5ff60166f889fc7afa269186;p=osm%2FMON.git diff --git a/docker/Dockerfile b/docker/Dockerfile index e6adb49..b07f781 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -1,8 +1,8 @@ -# Copyright 2017 Intel Research and Development Ireland Limited +# Copyright 2018 Whitestack, LLC # ************************************************************* # This file is part of OSM Monitoring module -# All Rights Reserved to Intel Corporation +# All Rights Reserved to Whitestack, LLC # Licensed under the Apache License, Version 2.0 (the "License"); you may # not use this file except in compliance with the License. You may obtain @@ -17,26 +17,29 @@ # under the License. # For those usages not covered by the Apache License, Version 2.0 please -# contact: prithiv.mohan@intel.com or adrian.hoban@intel.com - -#__author__ = "Prithiv Mohan" -#__date__ = "25/Sep/2017" +# contact: bdiaz@whitestack.com or glavado@whitestack.com +## FROM ubuntu:16.04 -RUN apt-get update && \ - DEBIAN_FRONTEND=noninteractive apt-get --yes install git tox make python-all python-pip debhelper && \ - DEBIAN_FRONTEND=noninteractive apt-get --yes install wget python-dev python-software-properties python-stdeb&& \ - DEBIAN_FRONTEND=noninteractive pip install -U pip && \ - DEBIAN_FRONTENT=noninteractive pip install -U requests logutils jsonschema lxml && \ - DEBIAN_FRONTEND=noninteractive pip install -U setuptools setuptools-version-command stdeb jsmin && \ - DEBIAN_FRONTEND=noninteractive pip install -U six pyvcloud bottle cherrypy pyopenssl && \ - DEBIAN_FRONTEND=noninteractive apt-get --yes install default-jre libmysqlclient-dev && \ - DEBIAN_FRONTEND=noninteractive apt-get --yes install libmysqlclient-dev libxml2 && \ - DEBIAN_FRONTEND=noninteractive pip install -U MySQL-python \ - python-openstackclient \ - python-keystoneclient \ - aodhclient \ - gnocchiclient \ - boto==2.48 \ - python-cloudwatchlogs-logging \ - py-cloudwatch + +LABEL authors="Guillermo Calvino" + +RUN apt-get --yes update \ + && apt-get --yes install git python python-pip python3 python3-pip libmysqlclient-dev libssl-dev libffi-dev \ + && pip install pip==9.0.3 + +COPY requirements.txt /mon/requirements.txt + +RUN pip3 install -r /mon/requirements.txt + +COPY . /mon + +RUN pip3 install /mon + +# These ENV must be provided +# ENV BROKER_URI=kafka:9092 +# ENV OS_NOTIFIER_URI=:8662 + +EXPOSE 8662 + +CMD /bin/bash mon/docker/scripts/runInstall.sh