Dockerfile 1.13 KB
Newer Older
Johan Helsing's avatar
Johan Helsing committed
1 2
FROM debian:stretch
RUN apt-get update && apt-get install -y \
Johan Helsing's avatar
Johan Helsing committed
3
        adwaita-icon-theme \
Johan Helsing's avatar
Johan Helsing committed
4
        build-essential \
Johan Helsing's avatar
Johan Helsing committed
5
        ccache \
Johan Helsing's avatar
Johan Helsing committed
6 7 8 9 10
        chrpath \
        cpio \
        diffstat \
        gcc-multilib \
        git-core \
11
        libegl1-mesa-dev \
Johan Helsing's avatar
Johan Helsing committed
12
        libfontconfig1-dev \
Johan Helsing's avatar
Johan Helsing committed
13 14
        libsdl1.2-dev \
        libwayland-dev \
Johan Helsing's avatar
Johan Helsing committed
15
        libxkbcommon-dev \
Johan Helsing's avatar
Johan Helsing committed
16 17 18 19 20
        python-crypto \
        socat \
        texinfo \
        unzip \
        vim \
21
        weston \
Johan Helsing's avatar
Johan Helsing committed
22 23 24 25 26 27 28 29
        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
30

31
ENV QT_DOCKERTEST_QT5_REV=dev
32

33 34
ENV XDG_RUNTIME_DIR=/tmp
ENV QT_QPA_PLATFORM=wayland
35 36
ENV MAKEFLAGS=-j8

37 38 39 40
# 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

41
COPY scripts/ /home/build/scripts
42
COPY config.opt /etc/qt/config.opt
Johan Helsing's avatar
Johan Helsing committed
43 44 45 46 47 48

# Set ccache config default just in case
RUN mkdir -p /home/build/.ccache
ENV CCACHE_DIR=/home/build/.ccache

CMD export PATH=/usr/lib/ccache:$PATH; ./scripts/run.sh