mirror of
git://code.qt.io/qt/qt5.git
synced 2026-01-07 23:46:51 +08:00
The californium docker container was based on californium 1.0.0, which
is a very old release. This results in some SSL-related errors when
running the Qt CoAP tests in the CI.
This patch updates the docker container. Instead of a custom fork of
a californium server, we use 3.8.0 release tag, and apply a custom
patch locally.
A similar docker container is already uploaded to DockerHub and used
in Qt CoAP examples.
Task-number: QTBUG-114798
Change-Id: I07346f69a6790b4ae648e073440d68f28668cdd0
Reviewed-by: Sona Kurazyan <kurazyan.sona@gmail.com>
Reviewed-by: Dimitrios Apostolou <jimis@qt.io>
(cherry picked from commit 2ed9f566c1)
16 lines
404 B
Docker
16 lines
404 B
Docker
FROM qt_ubuntu_18.04
|
|
ARG packages="avahi-daemon maven default-jdk patch"
|
|
RUN apt-get update && apt-get -y install $packages
|
|
|
|
# Get californium-based CoAP test server
|
|
WORKDIR /root/src
|
|
ADD californium-*.tar.gz .
|
|
RUN mv californium-* californium
|
|
WORKDIR /root/src/californium
|
|
ADD qt_changes.patch ./
|
|
RUN patch -p1 < qt_changes.patch
|
|
RUN mvn clean install -q -DskipTests
|
|
WORKDIR /
|
|
|
|
EXPOSE 5683/udp 5684/udp
|