diff --git a/mirror/Dockerfile b/mirror/Dockerfile new file mode 100644 index 0000000..45a358d --- /dev/null +++ b/mirror/Dockerfile @@ -0,0 +1,4 @@ +FROM eclipse-temurin:17-alpine +COPY /target/mirror-0.1.war /usr/local/lib/mirror-0.1.war +EXPOSE 8090 +ENTRYPOINT ["java","-jar","/usr/local/lib/mirror-0.1.war"] diff --git a/mirror/build.sh b/mirror/build.sh new file mode 100644 index 0000000..fc61395 --- /dev/null +++ b/mirror/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +mvn clean install && +docker build -t io42630/mirror:0.1 . + + + + + diff --git a/mirror/install-locally.sh b/mirror/install-locally.sh deleted file mode 100755 index e72296e..0000000 --- a/mirror/install-locally.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash -version="0.1" -file="target/misp-mirror-${version}.war" -groupId="com.olexyn.misp.mirror" -artifactId="misp-mirror" - - - -mvn package -mvn install:install-file -Dfile=${file} -DgroupId=${groupId} -DartifactId=${artifactId} -Dversion=${version} -Dpackaging=war -DgeneratePom=true diff --git a/mirror/pom.xml b/mirror/pom.xml index 3fd7f98..567add5 100644 --- a/mirror/pom.xml +++ b/mirror/pom.xml @@ -1,90 +1,48 @@ + + 4.0.0 + + com.olexyn + zeeroot + 17.0.1 + + com.olexyn.misp + mirror + 0.1 + war + mirror + + + + com.olexyn + zeebom + 1.1.1 + pom + import + + + + + + com.olexyn.misp + helper + 0.1 + compile + + + commons-io + commons-io + + + org.eclipse.jetty.orbit + javax.servlet + 3.0.0.v201112011016 + compile + + + org.json + json + + - - 4.0.0 - - com.olexyn.misp.mirror - mirror - 0.1 - war - - mirror Maven Webapp - - http://www.example.com - - - UTF-8 - 11 - 11 - - - - - junit - junit - 4.11 - test - - - com.olexyn.misp.helper - helper - 0.1 - compile - - - commons-io - commons-io - 2.6 - compile - - - org.eclipse.jetty.orbit - javax.servlet - 3.0.0.v201112011016 - compile - - - org.json - json - 20190722 - compile - - - - - - - - maven-clean-plugin - 3.1.0 - - - - maven-resources-plugin - 3.0.2 - - - maven-compiler-plugin - 3.8.0 - - - maven-surefire-plugin - 2.22.1 - - - maven-war-plugin - 3.2.2 - - - maven-install-plugin - 2.5.2 - - - maven-deploy-plugin - 2.8.2 - - - -