parent
12ecc2b0d3
commit
a86d2c3c59
@ -0,0 +1,4 @@
|
|||||||
|
FROM eclipse-temurin:17-alpine
|
||||||
|
COPY /target/forward-0.1.jar /usr/local/lib/forward.jar
|
||||||
|
EXPOSE 8080
|
||||||
|
ENTRYPOINT ["java","-jar","/usr/local/lib/forward.jar"]
|
@ -0,0 +1,9 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
mvn clean install &&
|
||||||
|
docker build -t io42630/forward:0.1 .
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
@ -1,10 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
version="0.1"
|
|
||||||
file="target/forward-${version}.war"
|
|
||||||
groupId="com.olexyn.misp.forward"
|
|
||||||
artifactId="forward"
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
mvn package
|
|
||||||
mvn install:install-file -Dfile=${file} -DgroupId=${groupId} -DartifactId=${artifactId} -Dversion=${version} -Dpackaging=war -DgeneratePom=true
|
|
@ -1,124 +1,59 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<modelVersion>4.0.0</modelVersion>
|
||||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
<parent>
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<groupId>com.olexyn</groupId>
|
||||||
|
<artifactId>zeeroot</artifactId>
|
||||||
<groupId>com.olexyn.misp.forward</groupId>
|
<version>spring-boot-jdk17-0.1</version>
|
||||||
<artifactId>forward</artifactId>
|
</parent>
|
||||||
<version>0.1</version>
|
<groupId>com.olexyn.misp</groupId>
|
||||||
<packaging>war</packaging>
|
<artifactId>forward</artifactId>
|
||||||
|
<version>0.1</version>
|
||||||
<name>forward Maven Webapp</name>
|
<packaging>jar</packaging>
|
||||||
<!-- FIXME change it to the project's website -->
|
<name>forward</name>
|
||||||
<url>http://www.example.com</url>
|
<dependencyManagement>
|
||||||
|
<dependencies>
|
||||||
<properties>
|
<dependency>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<groupId>com.olexyn</groupId>
|
||||||
<maven.compiler.source>11</maven.compiler.source>
|
<artifactId>zeebom</artifactId>
|
||||||
<maven.compiler.target>11</maven.compiler.target>
|
<version>1.1.1</version>
|
||||||
</properties>
|
<type>pom</type>
|
||||||
|
<scope>import</scope>
|
||||||
<dependencies>
|
</dependency>
|
||||||
<dependency>
|
</dependencies>
|
||||||
<groupId>junit</groupId>
|
</dependencyManagement>
|
||||||
<artifactId>junit</artifactId>
|
<dependencies>
|
||||||
<version>4.11</version>
|
<dependency>
|
||||||
<scope>test</scope>
|
<groupId>com.olexyn.misp.helper</groupId>
|
||||||
</dependency>
|
<artifactId>helper</artifactId>
|
||||||
<dependency>
|
<version>0.1</version>
|
||||||
<groupId>com.olexyn.misp.helper</groupId>
|
<scope>compile</scope>
|
||||||
<artifactId>helper</artifactId>
|
</dependency>
|
||||||
<version>0.1</version>
|
<dependency>
|
||||||
<scope>compile</scope>
|
<groupId>commons-io</groupId>
|
||||||
</dependency>
|
<artifactId>commons-io</artifactId>
|
||||||
<dependency>
|
</dependency>
|
||||||
<groupId>commons-io</groupId>
|
<dependency>
|
||||||
<artifactId>commons-io</artifactId>
|
<groupId>org.json</groupId>
|
||||||
<version>2.6</version>
|
<artifactId>json</artifactId>
|
||||||
<scope>compile</scope>
|
</dependency>
|
||||||
</dependency>
|
<dependency>
|
||||||
<dependency>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<groupId>org.eclipse.jetty.orbit</groupId>
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
<artifactId>javax.servlet</artifactId>
|
</dependency>
|
||||||
<version>3.0.0.v201112011016</version>
|
<dependency>
|
||||||
<scope>compile</scope>
|
<groupId>org.springframework.boot</groupId>
|
||||||
</dependency>
|
<artifactId>spring-boot-autoconfigure</artifactId>
|
||||||
<dependency>
|
</dependency>
|
||||||
<groupId>org.json</groupId>
|
<dependency>
|
||||||
<artifactId>json</artifactId>
|
<groupId>org.springframework.boot</groupId>
|
||||||
<version>20190722</version>
|
<artifactId>spring-boot-starter-tomcat</artifactId>
|
||||||
<scope>compile</scope>
|
<scope>provided</scope>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
<!-- for some godforsaken reason this is required. -->
|
||||||
<artifactId>jetty-server</artifactId>
|
<groupId>org.aspectj</groupId>
|
||||||
<version>9.4.28.v20200408</version>
|
<artifactId>aspectjweaver</artifactId>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
</dependencies>
|
||||||
<groupId>com.olexyn.min.http.server</groupId>
|
|
||||||
<artifactId>min-http-server</artifactId>
|
|
||||||
<version>0.1</version>
|
|
||||||
<scope>compile</scope>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
|
||||||
<artifactId>jetty-util</artifactId>
|
|
||||||
<version>9.4.28.v20200408</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
|
||||||
<artifactId>jetty-servlets</artifactId>
|
|
||||||
<version>9.4.28.v20200408</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.jetty</groupId>
|
|
||||||
<artifactId>jetty-servlet</artifactId>
|
|
||||||
<version>9.4.28.v20200408</version>
|
|
||||||
</dependency>
|
|
||||||
<dependency>
|
|
||||||
<groupId>org.eclipse.jetty.websocket</groupId>
|
|
||||||
<artifactId>websocket-server</artifactId>
|
|
||||||
<version>9.4.28.v20200408</version>
|
|
||||||
</dependency>
|
|
||||||
|
|
||||||
</dependencies>
|
|
||||||
|
|
||||||
|
|
||||||
<build>
|
|
||||||
<pluginManagement><!-- lock down plugins versions to avoid using Maven defaults (may be moved to parent pom) -->
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-clean-plugin</artifactId>
|
|
||||||
<version>3.1.0</version>
|
|
||||||
</plugin>
|
|
||||||
<!-- see http://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_war_packaging -->
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-resources-plugin</artifactId>
|
|
||||||
<version>3.0.2</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
|
||||||
<version>3.8.0</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-surefire-plugin</artifactId>
|
|
||||||
<version>2.22.1</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-war-plugin</artifactId>
|
|
||||||
<version>3.2.2</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-install-plugin</artifactId>
|
|
||||||
<version>2.5.2</version>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-deploy-plugin</artifactId>
|
|
||||||
<version>2.8.2</version>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</pluginManagement>
|
|
||||||
</build>
|
|
||||||
</project>
|
</project>
|
||||||
|
@ -0,0 +1,13 @@
|
|||||||
|
package com.olexyn.misp.forward;
|
||||||
|
|
||||||
|
import org.springframework.boot.SpringApplication;
|
||||||
|
import org.springframework.boot.autoconfigure.SpringBootApplication;
|
||||||
|
import org.springframework.context.annotation.EnableAspectJAutoProxy;
|
||||||
|
|
||||||
|
@SpringBootApplication
|
||||||
|
@EnableAspectJAutoProxy(proxyTargetClass = true)
|
||||||
|
public class App {
|
||||||
|
public static void main(String... args) {
|
||||||
|
SpringApplication.run(App.class, args);
|
||||||
|
}
|
||||||
|
}
|
@ -1,22 +0,0 @@
|
|||||||
<!DOCTYPE web-app PUBLIC
|
|
||||||
"-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
|
|
||||||
"http://java.sun.com/dtd/web-app_2_3.dtd" >
|
|
||||||
|
|
||||||
<web-app xmlns="http://java.sun.com/xml/ns/j2ee"
|
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
||||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"
|
|
||||||
version="2.4">
|
|
||||||
|
|
||||||
<display-name>misp-fwd</display-name>
|
|
||||||
|
|
||||||
<servlet>
|
|
||||||
<servlet-name>misp-fwd</servlet-name>
|
|
||||||
<servlet-class>com.olexyn.misp.forward.Forward</servlet-class>
|
|
||||||
</servlet>
|
|
||||||
|
|
||||||
<servlet-mapping>
|
|
||||||
<servlet-name>misp-fwd</servlet-name>
|
|
||||||
<url-pattern>/forward</url-pattern>
|
|
||||||
</servlet-mapping>
|
|
||||||
|
|
||||||
</web-app>
|
|
Before Width: | Height: | Size: 617 B |
@ -1,20 +0,0 @@
|
|||||||
<html>
|
|
||||||
<head>
|
|
||||||
<title>misp-fwd</title>
|
|
||||||
</head>
|
|
||||||
<body bgcolor=white>
|
|
||||||
|
|
||||||
<table border="0">
|
|
||||||
<tr>
|
|
||||||
<td align=center>
|
|
||||||
<img src="images/io42630.png">
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
<h1>misp-fwd</h1>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
Loading…
Reference in new issue