FROM ubuntu:16.04
-LABEL authors="Guillermo Calvino"
+LABEL authors="Benjamín Díaz"
RUN apt-get --yes update \
- && apt-get --yes install git python python-pip python3 python3-pip libmysqlclient-dev libssl-dev libffi-dev \
+ && apt-get --yes install git python3 python3-pip libmysqlclient-dev libssl-dev libffi-dev \
&& pip3 install pip==9.0.3
COPY requirements.txt /mon/requirements.txt
RUN pip3 install /mon
-# These ENV must be provided
-# ENV BROKER_URI=kafka:9092
-# ENV OS_NOTIFIER_URI=<IP_ACCESIBLE_FROM_OPENSTACK>:8662
+ENV BROKER_URI kafka:9092
+ENV MONGO_URI mongo:27017
+ENV DATABASE sqlite:///mon_sqlite.db
+ENV OS_NOTIFIER_URI localhost:8662
+ENV OS_DEFAULT_GRANULARITY 300
+ENV REQUEST_TIMEOUT 10
EXPOSE 8662
# For those usages not covered by the Apache License, Version 2.0 please
# contact: prithiv.mohan@intel.com or adrian.hoban@intel.com
kafka==1.3.*
-lxml==4.2.*
requests==2.18.*
-logutils==0.3.*
cherrypy==14.0.*
jsmin==2.2.*
jsonschema==2.6.*
-python-openstackclient==3.15.*
-python-novaclient==10.1.*
python-keystoneclient==3.15.*
boto==2.48
python-cloudwatchlogs-logging==0.0.3
bottle==0.12.*
peewee==3.1.*
pyyaml==3.*
-git+https://osm.etsi.org/gerrit/osm/common.git@857731b#egg=osm-common
\ No newline at end of file
+git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common
\ No newline at end of file
# 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__ = "14/Sep/2017"
from setuptools import setup
_name = 'osm_mon'
-_version = '1.0'
-_description = 'OSM Monitoring Module'
-_author = 'Prithiv Mohan'
-_author_email = 'prithiv.mohan@intel.com'
-_maintainer = 'Adrian Hoban'
-_maintainer_email = 'adrian.hoban@intel.com'
+_version_command = ('git describe --match v* --tags --long --dirty', 'pep440-git')
+_description = 'OSM Policy Module'
+_author = "Benjamín Díaz"
+_author_email = 'bdiaz@whitestack.com'
+_maintainer = 'Gianpietro Lavado'
+_maintainer_email = 'glavado@whitestack.com'
_license = 'Apache 2.0'
_url = 'https://osm.etsi.org/gitweb/?p=osm/MON.git;a=tree'
-setup(name="osm_mon",
- version=_version,
- description=_description,
- long_description=open('README.rst').read(),
- author=_author,
- author_email=_author_email,
- maintainer=_maintainer,
- maintainer_email=_maintainer_email,
- url=_url,
- license=_license,
- packages=[_name],
- package_dir={_name: _name},
- scripts=['osm_mon/plugins/vRealiseOps/vROPs_Webservice/vrops_webservice',
- 'osm_mon/core/message_bus/common_consumer.py'],
- install_requires=parse_requirements('requirements.txt'),
- include_package_data=True,
- dependency_links=[
- 'git+https://osm.etsi.org/gerrit/osm/common.git@857731b#egg=osm-common'
- ]
- )
+
+setup(
+ name=_name,
+ version_command=_version_command,
+ description=_description,
+ long_description=open('README.rst').read(),
+ author=_author,
+ author_email=_author_email,
+ maintainer=_maintainer,
+ maintainer_email=_maintainer_email,
+ url=_url,
+ license=_license,
+ packages=[_name],
+ package_dir={_name: _name},
+ scripts=['osm_mon/plugins/vRealiseOps/vROPs_Webservice/vrops_webservice',
+ 'osm_mon/core/message_bus/common_consumer.py'],
+ install_requires=parse_requirements('requirements.txt'),
+ include_package_data=True,
+ dependency_links=[
+ 'git+https://osm.etsi.org/gerrit/osm/common.git#egg=osm-common'
+ ],
+ setup_requires=['setuptools-version-command']
+)