From e4b596fcfe4537f3af54dcff9fddbd9f2574acab Mon Sep 17 00:00:00 2001 From: Sona Kurazyan Date: Thu, 7 Feb 2019 11:35:22 +0100 Subject: 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 --- .../common/shared/testserver/californium/Dockerfile | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 coin/provisioning/common/shared/testserver/californium/Dockerfile (limited to 'coin/provisioning/common/shared/testserver/californium/Dockerfile') diff --git a/coin/provisioning/common/shared/testserver/californium/Dockerfile b/coin/provisioning/common/shared/testserver/californium/Dockerfile new file mode 100644 index 00000000..90722510 --- /dev/null +++ b/coin/provisioning/common/shared/testserver/californium/Dockerfile @@ -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 -- cgit v1.2.3