Debian Codegraph @

.devcontainer/Dockerfile

raw
1 #
2 # This file is part of KDDockWidgets.
3 #
4 # SPDX-FileCopyrightText: 2023 Klarälvdalens Datakonsult AB, a KDAB Group company <[email protected]>
5 # Author: Sérgio Martins <[email protected]>
6 #
7 # SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only
8 #
9 # Contact KDAB at <[email protected]> for commercial licensing options.
10
11 # A minimal Dockerfile that's able to build and run KDDW tests.
12 # Tests are run with offscreen QPA
13 # This Dockerfile is just provided for demonstration purposes and not really used by CI.
14
15 # Instructions:
16 # docker build -t kddw-tests .
17 # docker run -it -v /data/sources/kddockwidgets/:/kddockwidgets/ -v ~/Qt/5.15.2/gcc_64/:/Qt5/ -v ~/Qt/6.6.0/gcc_64/:/Qt6/ --cap-add=SYS_PTRACE --security-opt seccomp=unconfined --ulimit nofile=1024:4096 -u 1000:1000 kddw-tests
18 # cd /kddockwidgets/
19 # cmake --preset=dev
20 # cd build-dev && ninja
21 # QT_QUICK_BACKEND=software ctest -j12
22
23 FROM ubuntu:24.04
24 MAINTAINER Sergio Martins ([email protected])
25
26 ENV TZ=Europe/Berlin
27 ENV LC_CTYPE=C.UTF-8
28 ENV PATH=$PATH:/Qt5/bin/:/Qt6/bin/
29 ENV LD_LIBRARY_PATH=/Qt5/lib/:/Qt6/lib/
30 ENV QT_QUICK_BACKEND=software
31 ENV LSAN_OPTIONS=detect_leaks=0
32
33 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
34
35 RUN apt update -qq && apt install build-essential software-properties-common lld git cmake ninja-build \
36 mesa-common-dev libglu1-mesa-dev libglib2.0-dev libfontconfig \
37 libxkbcommon-dev mesa-utils libgl1-mesa-dev libglu1-mesa-dev \
38 vim clang-tidy-14 valgrind pip libxslt-dev llvm libspdlog-dev clazy clang -y