tests/tools/Docker/beremiz-requirements/Dockerfile
branchwxPython4
changeset 3693 4058140a8757
parent 3692 a9b787d84846
child 3694 129b8e32f5bb
equal deleted inserted replaced
3692:a9b787d84846 3693:4058140a8757
     1 #
       
     2 # Dockerfile for Beremiz
       
     3 # This container is used to run tests for Beremiz
       
     4 #
       
     5 # To run test localy use following command executed from beremiz directory:
       
     6 # $ 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
       
     7 #
       
     8 
       
     9 FROM skvorl/python2.7-wxpython
       
    10 MAINTAINER Andrey Skvortsov <andrej.skvortzov@gmail.com>
       
    11 
       
    12 RUN set -xe \
       
    13     && apt-get update \
       
    14     && apt-get install -y --no-install-recommends \
       
    15                python-nevow \
       
    16                python-lxml \
       
    17                python-zeroconf \
       
    18                python-m2crypto \
       
    19                python-autobahn \
       
    20                python-future \
       
    21                python-simplejson \
       
    22     && apt-get install -y --no-install-recommends ca-certificates \
       
    23     && apt-get install -y --no-install-recommends wxglade python-cwiid \
       
    24     && apt-get install -y --no-install-recommends build-essential automake flex bison mercurial python-pip \
       
    25     && apt-get install -y --no-install-recommends \
       
    26                pep8 \
       
    27                pylint \
       
    28                python-pytest \
       
    29                python-pytest-timeout \
       
    30                gettext \
       
    31                python-ddt \
       
    32                libpython2.7-dev \
       
    33     \
       
    34     && apt-get install -y python3-pip \
       
    35     && pip3 install crossbar \
       
    36     \
       
    37     && /usr/bin/pip install gnosis \
       
    38                             pyro \
       
    39                             sslpsk \
       
    40                             posix_spawn \
       
    41     && cd / \
       
    42     && hg clone http://dev.automforge.net/CanFestival-3 \
       
    43     && cd CanFestival-3 \
       
    44     && ./configure \
       
    45     \
       
    46     && cd / \
       
    47     && hg clone -r 24ef30a9bcee1e65b027be2c7f7a8d52c41a7479 https://bitbucket.org/automforge/matiec \
       
    48     && cd matiec \
       
    49     && autoreconf -i \
       
    50     && ./configure \
       
    51     && make \
       
    52     && make install \
       
    53     && mkdir /usr/lib/matiec \
       
    54     && cp -vR lib/* /usr/lib/matiec \
       
    55     && rm -rf /matiec \
       
    56     \
       
    57     && cd / \
       
    58     && hg clone https://bitbucket.org/mjsousa/modbus Modbus \
       
    59     && cd Modbus \
       
    60     && make \
       
    61     \
       
    62     && cd / \
       
    63     && svn checkout https://svn.code.sf.net/p/bacnet/code/trunk/bacnet-stack/ BACnet \
       
    64     && cd BACnet \
       
    65     && make MAKE_DEFINE='-fPIC' all \
       
    66     \
       
    67     && apt-get remove -y bison flex automake python-pip python3-pip libpython2.7-dev \
       
    68     && apt-get autoremove -y \
       
    69     && apt-get clean -y \