summaryrefslogtreecommitdiffstats
path: root/deliveries/Dockerfile.widgetms
diff options
context:
space:
mode:
authorChristopher Lott (cl778h) <clott@research.att.com>2017-10-10 15:54:38 -0400
committerChristopher Lott (cl778h) <clott@research.att.com>2017-10-10 15:55:51 -0400
commit6a4a349a1be3ad5460e507dc4e2098936fd23859 (patch)
treeea66e04551023fe6b5cc49fa7c9f3d504a815a86 /deliveries/Dockerfile.widgetms
parent18f397918fb3139902e131772af6f400a7692e6f (diff)
Extend deployment for CSIT env quirks
Define new environment variables so a host IP and name can be added to a docker container /etc/hosts file for inter-app comms using the semi-well-known name portal.api.simpledemo.openecomp.org Issue: PORTAL-59 Change-Id: If1c23a77a4b227aac314d966f41e5d5aaad846f8 Signed-off-by: Christopher Lott (cl778h) <clott@research.att.com>
Diffstat (limited to 'deliveries/Dockerfile.widgetms')
-rw-r--r--deliveries/Dockerfile.widgetms15
1 files changed, 8 insertions, 7 deletions
diff --git a/deliveries/Dockerfile.widgetms b/deliveries/Dockerfile.widgetms
index 16bf60b1..72a11bb5 100644
--- a/deliveries/Dockerfile.widgetms
+++ b/deliveries/Dockerfile.widgetms
@@ -1,18 +1,19 @@
# Large image
# FROM openjdk:8-jdk
-# Very small image
+# Tiny image; it includes java and nc
FROM frolvlad/alpine-oraclejdk8:slim
# Arguments are supplied by build script;
# the defaults below only support testing
ARG WMS_JAR=build/widget-ms.jar
-# Launch script
-COPY start-wms-cmd.sh /
-# Wait script, which depends on nc
-COPY wait-for.sh /
# Onejar
COPY ${WMS_JAR} /app.jar
RUN sh -c 'touch /app.jar'
-VOLUME /tmp
-ENV JAVA_OPTS=""
+
+# Wait script, which depends on nc
+COPY wait-for.sh /
+# Launch script
+COPY start-wms-cmd.sh /
+
+# Define default command
CMD /start-wms-cmd.sh