mirror of
git://code.qt.io/qt/qt5.git
synced 2026-02-01 11:26:04 +08:00
Add the docker images for CoAP test servers
This change includes: - Docker image for the test server to test non-secure and PSK-based CoAP security modes. - Docker image for the test server to test X.509 certificate-based CoAP security mode. Change-Id: Ice661917591ecaee8ebc3500209bcffc08981f65 Reviewed-by: Ryan Chu <ryan.chu@qt.io>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
RUN apt-get update && apt-get -y install git maven default-jdk avahi-daemon
|
||||
|
||||
RUN mkdir -p /root/src/
|
||||
|
||||
# Get californium-based CoAP test server
|
||||
WORKDIR /root/src
|
||||
RUN git clone https://github.com/selart/californium.git
|
||||
WORKDIR /root/src/californium
|
||||
RUN mvn clean install -q -DskipTests
|
||||
|
||||
WORKDIR /
|
||||
|
||||
EXPOSE 5683/udp 5684/udp
|
||||
@@ -0,0 +1,20 @@
|
||||
FROM ubuntu:18.04
|
||||
|
||||
RUN apt-get update && apt-get -y install git avahi-daemon autoconf automake libtool make libgnutls28-dev
|
||||
|
||||
RUN mkdir -p /root/src/
|
||||
|
||||
# Get FreeCoAP test server
|
||||
WORKDIR /root/src
|
||||
RUN git clone https://github.com/keith-cullen/FreeCoAP.git
|
||||
WORKDIR /root/src/FreeCoAP
|
||||
RUN autoreconf --install
|
||||
RUN ./configure
|
||||
RUN make
|
||||
RUN make install
|
||||
WORKDIR /root/src/FreeCoAP/sample/time_server
|
||||
RUN make
|
||||
|
||||
WORKDIR /
|
||||
|
||||
EXPOSE 5685/udp
|
||||
@@ -34,5 +34,5 @@
|
||||
set -ex
|
||||
|
||||
# A list of test servers to be provisioned
|
||||
testserver='apache2 squid vsftpd ftp-proxy danted echo cyrus iptables'
|
||||
testserver='apache2 squid vsftpd ftp-proxy danted echo cyrus iptables californium freecoap'
|
||||
testserver="$testserver apache2_18.04 squid_18.04 vsftpd_18.04 ftp-proxy_18.04 danted_18.04 echo_18.04 cyrus_18.04 iptables_18.04"
|
||||
|
||||
Reference in New Issue
Block a user