Docker: Also add Qt Quick stuff to test image

Had to tweak things a bit, and the QML part doesn't start up yet:

Starting docker://e5813ba3db76/data/dev/sessions/docker-quick-cmake/docker-quick-cmake...
QML debugging is enabled. Only use this in a safe environment.
QStandardPaths: XDG_RUNTIME_DIR not set, defaulting to '/tmp/runtime-'
QQmlApplicationEngine failed to load component
qrc:/main.qml:2 module "QtQuick.Window" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed
qrc:/main.qml:2 module "QtQuick.Window" is not installed
qrc:/main.qml:1 module "QtQuick" is not installed

Change-Id: If7ec4aebee27880e01af6184ae22509e97054137
Reviewed-by: David Schulz <david.schulz@qt.io>
This commit is contained in:
hjk
2021-10-12 16:40:36 +02:00
parent 11fc62e9b1
commit ba7aa5ea9c

View File

@@ -1,10 +1,10 @@
FROM ubuntu:20.04 FROM ubuntu:20.04
RUN apt update && \ RUN apt-get update && \
apt upgrade -y && \ apt-get upgrade -y && \
apt dist-upgrade -y && \ apt-get dist-upgrade -y && \
apt install -y gpg wget software-properties-common apt-get install -y gpg wget software-properties-common
RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/null \
| gpg --dearmor - \ | gpg --dearmor - \
@@ -12,13 +12,17 @@ RUN wget -O - https://apt.kitware.com/keys/kitware-archive-latest.asc 2>/dev/nul
RUN apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ focal main' RUN apt-add-repository -y 'deb https://apt.kitware.com/ubuntu/ focal main'
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \ RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
git \ git \
openssh-client \ openssh-client \
sudo \ sudo \
vim \ vim \
cmake \ cmake \
qtbase5-dev \ qtbase5-dev \
qtdeclarative5-dev \
qtquickcontrols2-5-dev \
qtdeclarative5-dev-tools \
libqt5core5a \ libqt5core5a \
libqt5widgets5 \ libqt5widgets5 \
libqt5quick5 \ libqt5quick5 \
@@ -30,5 +34,6 @@ RUN DEBIAN_FRONTEND=noninteractive apt-get install -y \
nim \ nim \
linux-tools-common \ linux-tools-common \
valgrind \ valgrind \
&& apt-get clean \ && apt-get clean
&& rm -rf /var/lib/apt/lists/*
# && rm -rf /var/lib/apt/lists/*