aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKotagiri, Ramprasad (rp5662) <rp5662@att.com>2019-04-08 23:19:29 -0400
committerKotagiri, Ramprasad (rp5662) <rp5662@att.com>2019-04-08 23:21:24 -0400
commita7f82864a237478cab07dbbbb227b933ceda32c6 (patch)
tree760dde4e42690eff40715ee374e6014ffbce5e03
parenteef2f88f3e59bc4e107c37ca13c3a339b2d272b7 (diff)
copy war file in Docker image
Add build argument in POM to set the ARG used in Dockerfile. Issue-ID: CCSDK-1011 Change-Id: Ie8181b8bf19770e39a8358149a29e9bfc5ce1a86 Signed-off-by: Kotagiri, Ramprasad (rp5662) <rp5662@att.com>
-rw-r--r--ccsdk-app-os/Dockerfile2
-rw-r--r--ccsdk-app-os/docker-dashboard-installation.sh4
-rw-r--r--ccsdk-app-os/pom.xml1
3 files changed, 4 insertions, 3 deletions
diff --git a/ccsdk-app-os/Dockerfile b/ccsdk-app-os/Dockerfile
index dc49492..81f3cb3 100644
--- a/ccsdk-app-os/Dockerfile
+++ b/ccsdk-app-os/Dockerfile
@@ -35,4 +35,4 @@ RUN dos2unix /tmp/docker-dashboard-installation.sh
RUN chmod +x /tmp/create_table.sql
RUN chmod +x /tmp/docker-dashboard-installation.sh
-CMD ["/tmp/docker-dashboard-installation.sh"] \ No newline at end of file
+CMD ["/tmp/docker-dashboard-installation.sh"]
diff --git a/ccsdk-app-os/docker-dashboard-installation.sh b/ccsdk-app-os/docker-dashboard-installation.sh
index 75aa8a0..4c35510 100644
--- a/ccsdk-app-os/docker-dashboard-installation.sh
+++ b/ccsdk-app-os/docker-dashboard-installation.sh
@@ -1,10 +1,10 @@
#!/bin/bash
# Unzip the dashboard war file
-unzip -qq -d /home/deployments/ccsdk-app /home/deployments/ccsdk-app.war
+unzip -qq -d /home/deployments/ccsdk-app /home/deployments/ccsdk-app*.war
# Delete the dashboard war file
-rm -f /home/deployments/ccsdk-app.war
+rm -f /home/deployments/ccsdk-app*.war
# Update dashboard.properties
cat /home/deployments/ccsdk-app/WEB-INF/conf/dashboard.properties | \
diff --git a/ccsdk-app-os/pom.xml b/ccsdk-app-os/pom.xml
index 242c682..1c8c5b0 100644
--- a/ccsdk-app-os/pom.xml
+++ b/ccsdk-app-os/pom.xml
@@ -38,6 +38,7 @@
<ccsdk.distribution.version>${project.version}</ccsdk.distribution.version>
<maven.build.timestamp.format>yyyyMMdd'T'HHmmss'Z'</maven.build.timestamp.format>
<docker.verbose>true</docker.verbose>
+ <docker.buildArg.WAR_FILE>${project.build.finalName}.war</docker.buildArg.WAR_FILE>
</properties>