Dockerfile 903 Bytes
Newer Older
Johan Helsing's avatar
Johan Helsing committed
1 2 3 4 5 6 7 8
FROM debian:stretch
RUN apt-get update && apt-get install -y \
        build-essential \
        chrpath \
        cpio \
        diffstat \
        gcc-multilib \
        git-core \
9
        libegl1-mesa-dev \
Johan Helsing's avatar
Johan Helsing committed
10 11
        libsdl1.2-dev \
        libwayland-dev \
Johan Helsing's avatar
Johan Helsing committed
12
        libxkbcommon-dev \
Johan Helsing's avatar
Johan Helsing committed
13 14 15 16 17
        python-crypto \
        socat \
        texinfo \
        unzip \
        vim \
18
        weston \
Johan Helsing's avatar
Johan Helsing committed
19 20 21 22 23 24 25 26
        wget

RUN id build 2>/dev/null || useradd --uid 1000 --create-home build
RUN apt-get -y install sudo
RUN echo "build ALL=(ALL) NOPASSWD: ALL" | tee -a /etc/sudoers

USER build
WORKDIR /home/build/
Johan Helsing's avatar
Johan Helsing committed
27

28
ENV QT_DOCKERTEST_QT5_REV=dev
29

30 31
ENV XDG_RUNTIME_DIR=/tmp
ENV QT_QPA_PLATFORM=wayland
32 33
ENV MAKEFLAGS=-j8

34 35 36 37
# Keep Qt source code as part of the image to avoid duplication
COPY scripts/clone-qt.sh /home/build/scripts/clone-qt.sh
RUN scripts/clone-qt.sh

38 39
COPY scripts/ /home/build/scripts
CMD "./scripts/run.sh"