aboutsummaryrefslogtreecommitdiffstats
path: root/test/mocks/sniroemulator/src/main/docker
diff options
context:
space:
mode:
authorGeora Barsky <georab@amdocs.com>2017-09-22 12:47:03 -0400
committerGeora Barsky <georab@amdocs.com>2017-09-22 12:47:03 -0400
commit46c1a40e6cb283f7d42270b877401d584d168494 (patch)
treec2d1d25b4c0df3d7d8f9225eb9624e0d350c158e /test/mocks/sniroemulator/src/main/docker
parent8a984bcdd1118c15723fc18dc737a609eb6978c9 (diff)
Sniro Emulator - Move to different location
Change location of sniro emulator project from intgration/test/mock to integration/test/mocks/sniroemulator Change-Id: I808525d0d8ec23e785a5f06b7ba43a003a00d6fc JIRA-ID: INT-215 Signed-off-by: Geora Barsky <georab@amdocs.com>
Diffstat (limited to 'test/mocks/sniroemulator/src/main/docker')
-rw-r--r--test/mocks/sniroemulator/src/main/docker/Dockerfile19
-rw-r--r--test/mocks/sniroemulator/src/main/docker/docker-entrypoint.sh5
2 files changed, 24 insertions, 0 deletions
diff --git a/test/mocks/sniroemulator/src/main/docker/Dockerfile b/test/mocks/sniroemulator/src/main/docker/Dockerfile
new file mode 100644
index 000000000..05f3a5a2b
--- /dev/null
+++ b/test/mocks/sniroemulator/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 sniroemulator.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/mocks/sniroemulator/src/main/docker/docker-entrypoint.sh b/test/mocks/sniroemulator/src/main/docker/docker-entrypoint.sh
new file mode 100644
index 000000000..47364a270
--- /dev/null
+++ b/test/mocks/sniroemulator/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