2021-02-11 10:26:44 +01:00
|
|
|
FROM ubuntu:bionic AS pybm-build-bionic
|
|
|
|
|
|
|
|
ENV DEBIAN_FRONTEND noninteractive
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
software-properties-common
|
|
|
|
|
|
|
|
RUN dpkg --add-architecture i386
|
|
|
|
|
|
|
|
RUN add-apt-repository ppa:deadsnakes/ppa
|
|
|
|
|
|
|
|
RUN apt-get update
|
|
|
|
|
|
|
|
RUN apt-get -y install sudo
|
|
|
|
|
|
|
|
# travis xenial bionic
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
python-setuptools libssl-dev libpq-dev python-prctl python-dev \
|
2021-02-26 09:45:53 +01:00
|
|
|
python-dev python-virtualenv python-pip virtualenv
|
2021-02-11 10:26:44 +01:00
|
|
|
|
|
|
|
# travis focal
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
python-setuptools libpcap-dev libpq-dev python-prctl python-dev \
|
|
|
|
libpcap-dev python3-virtualenv python3-pip virtualenv
|
|
|
|
|
|
|
|
# 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 python-stdeb \
|
2021-02-12 08:20:01 +01:00
|
|
|
python-all-dev python-crypto python-pycryptopp python-psutil \
|
2021-11-29 06:42:05 +01:00
|
|
|
fakeroot python-pytest libglib2.0-bin
|
2021-02-11 10:26:44 +01:00
|
|
|
|
|
|
|
# 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 \
|
2021-02-24 21:23:47 +01:00
|
|
|
curl shellcheck
|
2021-02-11 10:26:44 +01:00
|
|
|
|
|
|
|
# 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 git subversion python3-dev libffi-dev python3-setuptools \
|
2021-02-26 21:33:12 +01:00
|
|
|
python3-pip dumb-init curl openssh-client
|
2021-02-11 10:26:44 +01:00
|
|
|
|
|
|
|
# python 3.7
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
python3.7 python3.7-dev
|
|
|
|
|
2021-02-26 09:43:51 +01:00
|
|
|
# tests
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
shunit2
|
|
|
|
|
2021-02-26 21:33:12 +01:00
|
|
|
|
|
|
|
|
2021-02-11 10:26:44 +01:00
|
|
|
# .travis.yml
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
build-essential libcap-dev tor
|
|
|
|
|
2021-02-14 11:58:35 +01:00
|
|
|
# locales
|
|
|
|
RUN apt-get install -yq --no-install-suggests --no-install-recommends \
|
|
|
|
language-pack-en
|
|
|
|
|
2021-02-11 10:26:44 +01:00
|
|
|
# cleanup
|
|
|
|
RUN rm -rf /var/lib/apt/lists/*
|
|
|
|
|
|
|
|
# travis2bash
|
2021-02-11 11:12:04 +01:00
|
|
|
COPY travis2bash.sh /usr/local/bin
|
2021-02-11 10:26:44 +01:00
|
|
|
|
|
|
|
RUN echo 'buildbot ALL=(ALL) NOPASSWD:ALL' >> /etc/sudoers
|
|
|
|
|
|
|
|
COPY entrypoint.sh /entrypoint.sh
|
|
|
|
|
|
|
|
USER buildbot
|
|
|
|
|
2021-02-14 15:07:47 +01:00
|
|
|
ENV LANG en_US.UTF-8
|
|
|
|
ENV LANGUAGE en_US:en
|
|
|
|
ENV LC_ALL en_US.UTF-8
|
|
|
|
|
2021-02-11 10:26:44 +01:00
|
|
|
ENTRYPOINT /entrypoint.sh "$BUILDMASTER" "$WORKERNAME" "$WORKERPASS"
|