-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 \
+ && pip3 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=<IP_ACCESIBLE_FROM_OPENSTACK>:8662
+
+EXPOSE 8662
+
+CMD /bin/bash mon/docker/scripts/runInstall.sh