diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..297671a --- /dev/null +++ b/Dockerfile @@ -0,0 +1,3 @@ +FROM tomcat:latest + + COPY ./target/DataDash-0.0.1-SNAPSHOT.war /usr/local/tomcat/webapps \ No newline at end of file diff --git a/pom.xml b/pom.xml index cdd484e..33d332b 100644 --- a/pom.xml +++ b/pom.xml @@ -16,6 +16,7 @@ A ProductHunt like site to find datasets and APIs 22 + 21 diff --git a/run b/run new file mode 100755 index 0000000..e55b94d --- /dev/null +++ b/run @@ -0,0 +1,4 @@ +#!/bin/bash +./mvnw clean package +docker build -t sample-tomcat . +docker container run -d --name sample-tomcat -p 8080:8080 sample-tomcat:latest \ No newline at end of file diff --git a/stop b/stop new file mode 100755 index 0000000..a420e1a --- /dev/null +++ b/stop @@ -0,0 +1,2 @@ +#!/bin/bash +docker rm -f sample-tomcat \ No newline at end of file