FROM debian:9
MAINTAINER Jean Gabes <naparuba@gmail.com>

RUN        apt-get update && apt-get install -y python
# allow fast install (docker cache)
RUN        apt-get install -y python-pip
RUN        apt-get install -y python-leveldb
RUN        apt-get install -y python-cherrypy3


ADD        . /root/opsbro-oss
WORKDIR       /root/opsbro-oss

RUN       python setup.py install

# The node1 will try to connect to node2 and auto join it
ENTRYPOINT    test/test_one_linux_installation.sh   && test/test_udp_auto_join.sh "NODE1"