Debian Codegraph @

.devcontainer/Dockerfile_python

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 KDDW Python support
12
13 # Instructions:
14 # docker build -t kddw-python .
15 # 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-python
16 # cd /kddockwidgets/
17
18 FROM ubuntu:22.04
19 MAINTAINER Sergio Martins ([email protected])
20
21 ENV TZ=Europe/Berlin
22 ENV LC_CTYPE=C.UTF-8
23 ENV PATH=$PATH:/Qt5/bin/:/Qt6/bin/
24 ENV LD_LIBRARY_PATH=/Qt5/lib/:/Qt6/lib/
25 ENV QT_QUICK_BACKEND=software
26 ENV LSAN_OPTIONS=detect_leaks=0
27
28 RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
29
30 RUN apt update -qq && apt install build-essential software-properties-common lld git cmake ninja-build \
31 mesa-common-dev libglu1-mesa-dev libglib2.0-dev libfontconfig \
32 libxkbcommon-dev mesa-utils libgl1-mesa-dev libglu1-mesa-dev \
33 vim clang-tidy-14 valgrind pip libxslt-dev llvm libspdlog-dev clazy clang -y
34
35 RUN pip install shiboken6-generator==6.6.0 shiboken6==6.6.0 pyside6==6.6.0
36
37 RUN pip install --index-url=https://download.qt.io/official_releases/QtForPython \
38 --trusted-host download.qt.io shiboken2-generator==5.15.2.1 shiboken2==5.15.2.1 pyside2==5.15.2.1
39
40 RUN mkdir /home/user && \
41 groupadd -g 1000 defaultgroup && \
42 useradd -u 1000 -g defaultgroup user -m && chown -R user /home/user