diff options
author | Geora Barsky <georab@amdocs.com> | 2017-09-19 17:08:12 -0400 |
---|---|---|
committer | Geora Barsky <georab@amdocs.com> | 2017-09-19 23:41:20 -0400 |
commit | 16c93bd15d9809c1e4a4295db6a634d75ed1a8ea (patch) | |
tree | fc7d0dafb116c00454365ea68fa417c97c34bc10 /test/mock/src/main/docker | |
parent | 7e83d7fbdb6975f7b9e47284aacc833749853d62 (diff) |
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 <georab@amdocs.com>
Diffstat (limited to 'test/mock/src/main/docker')
-rw-r--r-- | test/mock/src/main/docker/Dockerfile | 19 | ||||
-rw-r--r-- | test/mock/src/main/docker/docker-entrypoint.sh | 5 |
2 files changed, 24 insertions, 0 deletions
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 <georab@amdocs.com> + +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 |