| 1 |
# |
| 2 |
# This file is part of KDDockWidgets. |
| 3 |
# |
| 4 |
# SPDX-FileCopyrightText: 2019 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 |
# The purpose of this Dockerfile is just for quickly getting a running python build for testing. |
| 12 |
|
| 13 |
# Instructions: |
| 14 |
|
| 15 |
# $ docker build -t kddw-pyside2 . |
| 16 |
# $ docker run -it -v ~/Qt/5.15.2/gcc_64/:/Qt/ -v /tmp/.X11-unix:/tmp/.X11-unix kddw-pyside2 |
| 17 |
# git checkout 2.0 |
| 18 |
# cmake --preset=python -G Ninja . && cd build-python/ && ninja |
| 19 |
|
| 20 |
# Test with: |
| 21 |
# cd ../python/examples && rcc -g python -o rc_assets.py ../../examples/dockwidgets/resources_example.qrc |
| 22 |
# python3 main.py |
| 23 |
|
| 24 |
FROM ubuntu:22.04 |
| 25 |
MAINTAINER Sergio Martins ([email protected]) |
| 26 |
|
| 27 |
ENV TZ=Europe/Berlin |
| 28 |
ENV LC_CTYPE=C.UTF-8 |
| 29 |
ENV DISPLAY=:0 |
| 30 |
ENV PATH=$PATH:/Qt/bin/ |
| 31 |
ENV LD_LIBRARY_PATH=/Qt/lib/ |
| 32 |
ENV PYTHONPATH=/KDDockWidgets/build-python/python/ |
| 33 |
|
| 34 |
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone |
| 35 |
|
| 36 |
RUN apt update |
| 37 |
RUN apt install build-essential software-properties-common git ninja-build libssl-dev mesa-common-dev libglu1-mesa-dev libglib2.0-dev libfontconfig libxkbcommon-x11-0 libdbus-1-3 cmake pip libxslt1-dev llvm-dev clang libxcb-keysyms1 libxcb-image0 libxcb-icccm4 libxcb-xinerama0 libxcb-shape0 libxcb-render-util0 -y |
| 38 |
RUN pip3 install --index-url=http://download.qt.io/official_releases/QtForPython/ --trusted-host download.qt.io shiboken2 pyside2 shiboken2_generator |
| 39 |
|
| 40 |
WORKDIR / |
| 41 |
RUN git clone https://github.com/KDAB/KDDockWidgets.git |
| 42 |
WORKDIR /KDDockWidgets/ |