From 16c93bd15d9809c1e4a4295db6a634d75ed1a8ea Mon Sep 17 00:00:00 2001 From: Geora Barsky Date: Tue, 19 Sep 2017 17:08:12 -0400 Subject: Add Onap Mock Emulator Onap Mock Emulator is aimed to emulate SNIRO functionality for vCPE use case Change-Id: Idd6e1e4c955749c31f1891b0fc6e6b8236d931f0 JIRA-ID:INT-215 Signed-off-by: Geora Barsky --- test/mock/src/main/docker/Dockerfile | 19 +++++++++++++++++++ test/mock/src/main/docker/docker-entrypoint.sh | 5 +++++ 2 files changed, 24 insertions(+) create mode 100644 test/mock/src/main/docker/Dockerfile create mode 100644 test/mock/src/main/docker/docker-entrypoint.sh (limited to 'test/mock/src/main/docker') diff --git a/test/mock/src/main/docker/Dockerfile b/test/mock/src/main/docker/Dockerfile new file mode 100644 index 000000000..b1bf4d93c --- /dev/null +++ b/test/mock/src/main/docker/Dockerfile @@ -0,0 +1,19 @@ +FROM openjdk:8-jre + +MAINTAINER Geora Barsky + +RUN mkdir -p /var/wiremock/lib/ + +ADD mock.jar /var/wiremock/lib/app.jar + +WORKDIR /home/wiremock + +COPY docker-entrypoint.sh / +RUN chmod 700 /docker-entrypoint.sh + +VOLUME /home/wiremock +EXPOSE 8080 8081 9999 + +ENTRYPOINT ["/docker-entrypoint.sh"] + +CMD ["java", "-jar","/var/wiremock/lib/app.jar"] \ No newline at end of file diff --git a/test/mock/src/main/docker/docker-entrypoint.sh b/test/mock/src/main/docker/docker-entrypoint.sh new file mode 100644 index 000000000..47364a270 --- /dev/null +++ b/test/mock/src/main/docker/docker-entrypoint.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +touch /app.jar + +java -Xms1024m -Xmx1024m -jar /var/wiremock/lib/app.jar \ No newline at end of file -- cgit 1.2.3-korg