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