diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..eb5a316cbd195d26e3f768c7dd8e1b47299e17f8 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +target diff --git a/pom.xml b/pom.xml index 5319bc912dc3a6a73e585de5ee309faa7433f9a4..1182ca9bebdb27a62f99fa17d341df808dbff95d 100644 --- a/pom.xml +++ b/pom.xml @@ -4,7 +4,7 @@ dhu campanule.rest - 1.2.0-SNAPSHOT + 1.2.1-SNAPSHOT war @@ -146,7 +146,20 @@ - + + org.apache.maven.plugins + maven-help-plugin + 3.1.0 + + + show-profiles + compile + + active-profiles + + + + @@ -162,5 +175,80 @@ + + + + docker + + + src/main/docker/Dockerfile + + + + + + + maven-resources-plugin + 3.2.0 + + + copy-resources + validate + + copy-resources + + + ${basedir}/target + + + src/main/docker + true + + + + + + + + + org.apache.maven.plugins + maven-antrun-plugin + 1.6 + + + deploy + + + + + + + + + + + + + + + + + + + + + + + + + run + + + + + + + + diff --git a/src/main/docker/Dockerfile b/src/main/docker/Dockerfile new file mode 100644 index 0000000000000000000000000000000000000000..70a7133bbd15309c14a0f2001b0385d81d1fcfa4 --- /dev/null +++ b/src/main/docker/Dockerfile @@ -0,0 +1,8 @@ +FROM tomcat:9.0 +LABEL maintainer="dominique.huguenin@rpn.ch" + +ADD ${project.artifactId}-${project.version} /usr/local/tomcat/webapps/ROOT + +EXPOSE 8080 + +CMD ["catalina.sh", "run"] \ No newline at end of file