andrej@2549: #
andrej@2549: # Dockerfile for Beremiz
andrej@2549: # This container is used to run tests for Beremiz
andrej@2549: #
andrej@2549: # To run test localy use following command executed from beremiz directory:
andrej@2549: # $ docker run --volume=$PWD:/beremiz --workdir="/beremiz" --volume=$PWD/../CanFestival-3:/CanFestival-3 --memory=1g --entrypoint=/beremiz/tests/tools/check_source.sh skvorl/beremiz-requirements
andrej@2549: #
andrej@2549: 
andrej@2549: FROM skvorl/python2.7-wxpython
andrej@2549: MAINTAINER Andrey Skvortsov <andrej.skvortzov@gmail.com>
andrej@2549: 
andrej@2549: RUN set -xe \
andrej@2549:     && apt-get update \
andrej@2549:     && apt-get install -y --no-install-recommends \
andrej@2549:                python-nevow \
andrej@2549:                python-lxml \
andrej@2549:                python-zeroconf \
andrej@2549:                python-m2crypto \
andrej@2549:                python-autobahn \
andrej@2549:                python-future \
andrej@2549:                python-simplejson \
andrej@2549:     && apt-get install -y --no-install-recommends ca-certificates \
andrej@2549:     && apt-get install -y --no-install-recommends wxglade python-cwiid \
andrej@2549:     && apt-get install -y --no-install-recommends build-essential automake flex bison mercurial python-pip \
andrej@2549:     && apt-get install -y --no-install-recommends \
andrej@2549:                pep8 \
andrej@2549:                pylint \
andrej@2549:                python-pytest \
andrej@2549:                python-pytest-timeout \
andrej@2549:                gettext \
andrej@2549:                python-ddt \
andrej@2549:                libpython2.7-dev \
andrej@2549:     \
andrej@2549:     && apt-get install -y python3-pip \
andrej@2549:     && pip3 install crossbar \
andrej@2549:     \
andrej@2549:     && /usr/bin/pip install gnosis \
andrej@2549:                             pyro \
andrej@2549:                             sslpsk \
andrej@2549:                             posix_spawn \
andrej@2549:     && cd / \
andrej@2549:     && hg clone http://dev.automforge.net/CanFestival-3 \
andrej@2549:     && cd CanFestival-3 \
andrej@2549:     && ./configure \
andrej@2549:     \
andrej@2549:     && cd / \
andrej@2549:     && hg clone -r 24ef30a9bcee1e65b027be2c7f7a8d52c41a7479 https://bitbucket.org/automforge/matiec \
andrej@2549:     && cd matiec \
andrej@2549:     && autoreconf -i \
andrej@2549:     && ./configure \
andrej@2549:     && make \
andrej@2549:     && make install \
andrej@2549:     && mkdir /usr/lib/matiec \
andrej@2549:     && cp -vR lib/* /usr/lib/matiec \
andrej@2549:     && rm -rf /matiec \
andrej@2549:     \
andrej@2549:     && cd / \
andrej@2549:     && hg clone https://bitbucket.org/mjsousa/modbus Modbus \
andrej@2549:     && cd Modbus \
andrej@2549:     && make \
andrej@2549:     \
andrej@2549:     && cd / \
andrej@2549:     && svn checkout https://svn.code.sf.net/p/bacnet/code/trunk/bacnet-stack/ BACnet \
andrej@2549:     && cd BACnet \
andrej@2549:     && make MAKE_DEFINE='-fPIC' all \
andrej@2549:     \
andrej@2549:     && apt-get remove -y bison flex automake python-pip python3-pip libpython2.7-dev \
andrej@2549:     && apt-get autoremove -y \
andrej@2549:     && apt-get clean -y \