2021-01-08 11:42:22 +01:00
|
|
|
|
|
|
|
FROM ubuntu:bionic AS pybm-build
|
2021-01-05 08:55:53 +01:00
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
RUN dpkg --add-architecture i386
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
2021-01-08 11:42:22 +01:00
|
|
|
RUN apt-get -y install sudo
|
|
|
|
|
2021-01-05 08:55:53 +01:00
|
|
|
# travis xenial bionic
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
2021-01-08 11:42:22 +01:00
|
|
|
python-setuptools libssl-dev libpq-dev python-prctl python-dev python-dev python-virtualenv python-pip
|
2021-01-05 08:55:53 +01:00
|
|
|
|
|
|
|
# travis focal
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
2021-01-08 11:42:22 +01:00
|
|
|
python-setuptools libpcap-dev libpq-dev python-prctl python-dev libpcap-dev python3-virtualenv python3-pip
|
2021-01-05 08:55:53 +01:00
|
|
|
|
|
|
|
# dpkg
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
python-minimal python-setuptools python-all python openssl libssl-dev \
|
|
|
|
dh-apparmor debhelper dh-python python-msgpack python-qt4 git python-stdeb \
|
|
|
|
python-all-dev
|
|
|
|
|
|
|
|
# Code quality
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
pylint python-pycodestyle python3-pycodestyle pycodestyle python-flake8 \
|
|
|
|
python3-flake8 flake8 python-pyflakes python3-pyflakes pyflakes pyflakes3 \
|
|
|
|
curl
|
|
|
|
|
|
|
|
# Wine32
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
python python-pip wget wine-stable winetricks mingw-w64 wine32 wine64 xvfb
|
|
|
|
|
|
|
|
# Wine64
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
python python-pip wget wine-stable winetricks mingw-w64 wine32 wine64 xvfb
|
|
|
|
|
|
|
|
# Buildbot
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
buildbot-slave
|
|
|
|
|
|
|
|
# travis2bash
|
|
|
|
RUN wget -O /usr/local/bin/travis2bash.sh https://storage.bitmessage.org/travis2bash.sh
|
|
|
|
RUN chmod a+x /usr/local/bin/travis2bash.sh
|
|
|
|
|
|
|
|
RUN useradd -ms /bin/bash pool
|
|
|
|
|
|
|
|
RUN echo 'pool ALL=ALL NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
|
2021-01-08 11:42:22 +01:00
|
|
|
|
|
|
|
## pybm-travis
|
|
|
|
|
|
|
|
FROM pybm-build AS buildbot-test
|
|
|
|
|
|
|
|
RUN pip install --upgrade setuptools
|
|
|
|
|
|
|
|
ENV HOME /root
|
|
|
|
|
|
|
|
WORKDIR $HOME
|
|
|
|
|
|
|
|
RUN git clone https://github.com/Bitmessage/PyBitmessage
|
|
|
|
|
|
|
|
RUN apt-get -y install python-prctl g++
|
|
|
|
|
|
|
|
WORKDIR $HOME/PyBitmessage
|
|
|
|
ENV PATH $HOME/.local/bin:$PATH
|
|
|
|
|
|
|
|
RUN pip install -r requirements.txt
|
|
|
|
RUN ln -s src pybitmessage
|
|
|
|
RUN python setup.py install --user
|
|
|
|
RUN python checkdeps.py
|
|
|
|
RUN xvfb-run src/bitmessagemain.py -t
|
|
|
|
RUN python setup.py test
|