1caac1c0e4
Without python3-venv, I get the following message when trying to run the acceptance tests within the debian container: The virtual environment was not created successfully because ensurepip is not available. On Debian/Ubuntu systems, you need to install the python3-venv package using the following command. apt-get install python3-venv You may need to use sudo with that command. After installing the python3-venv package, recreate your virtual environment. Let's do it as the message suggests. And while we're at it, also add netcat here since it is required for some of the acceptance tests. Message-Id: <20200730141326.8260-2-thuth@redhat.com> Reviewed-by: Alex Bennée <alex.bennee@linaro.org> Signed-off-by: Thomas Huth <thuth@redhat.com>
52 lines
1.6 KiB
Docker
52 lines
1.6 KiB
Docker
#
|
|
# Docker x86_64 target
|
|
#
|
|
# This docker target builds on the debian Stretch base image. Further
|
|
# libraries which are not widely available are installed by hand.
|
|
#
|
|
FROM qemu/debian10
|
|
MAINTAINER Philippe Mathieu-Daudé <f4bug@amsat.org>
|
|
|
|
RUN apt update && \
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
apt build-dep -yy qemu
|
|
|
|
RUN apt update && \
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
apt install -y --no-install-recommends \
|
|
libbz2-dev \
|
|
liblzo2-dev \
|
|
libgcrypt20-dev \
|
|
librdmacm-dev \
|
|
libsasl2-dev \
|
|
libsnappy-dev \
|
|
libvte-dev \
|
|
netcat-openbsd \
|
|
python3-venv
|
|
|
|
# virgl
|
|
RUN apt update && \
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
apt install -y --no-install-recommends \
|
|
libegl1-mesa-dev \
|
|
libepoxy-dev \
|
|
libgbm-dev
|
|
RUN git clone https://gitlab.freedesktop.org/virgl/virglrenderer.git /usr/src/virglrenderer && \
|
|
cd /usr/src/virglrenderer && git checkout virglrenderer-0.8.0
|
|
RUN cd /usr/src/virglrenderer && ./autogen.sh && ./configure --disable-tests && make install
|
|
|
|
# netmap
|
|
RUN apt update && \
|
|
DEBIAN_FRONTEND=noninteractive eatmydata \
|
|
apt install -y --no-install-recommends \
|
|
linux-headers-amd64
|
|
RUN git clone https://github.com/luigirizzo/netmap.git /usr/src/netmap
|
|
RUN cd /usr/src/netmap && git checkout v11.3
|
|
RUN cd /usr/src/netmap/LINUX && ./configure --no-drivers --no-apps --kernel-dir=$(ls -d /usr/src/linux-headers-*-amd64) && make install
|
|
ENV QEMU_CONFIGURE_OPTS --enable-netmap
|
|
|
|
RUN ldconfig
|
|
|
|
# gcrypt
|
|
ENV QEMU_CONFIGURE_OPTS $QEMU_CONFIGURE_OPTS --enable-gcrypt
|