Skip to content

Commit 138bec0

Browse files
committed
- Update MX version to 21.8.0
- Update MT version to `21.27.1` - Update Swift Translator version to `3.6.0` - Make application to run as jar with embedded tomcat
1 parent f352938 commit 138bec0

File tree

6 files changed

+13
-39
lines changed

6 files changed

+13
-39
lines changed

Dockerfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
1-
FROM tomcat:9-jre8-alpine
2-
RUN ["rm", "-fr", "/usr/local/tomcat/webapps/ROOT"]
1+
FROM eclipse-temurin:8-jre-focal
32

4-
ADD ./target/*.war /usr/local/tomcat/webapps/ROOT.war
3+
COPY ./target/*.jar /work/app.jar
4+
WORKDIR /work
55

6-
EXPOSE 8080
6+
EXPOSE 8080
7+
8+
ENTRYPOINT ["java","-jar","app.jar"]

README.md

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,7 @@ you can run it inside a docker container using the following instructions:
1212

1313
1. Create a folder named `rest-sdk-wrapper`
1414
2. Copy the jar inside this folder
15-
3. Create a file named `Dockerfile` or use [this one](Dockerfile) and paste in it the following content
16-
```Dockerfile
17-
FROM tomcat:9-jre8-alpine
18-
RUN ["rm", "-fr", "/usr/local/tomcat/webapps/ROOT"]
19-
20-
ADD ./target/*.war /usr/local/tomcat/webapps/ROOT.war
21-
22-
EXPOSE 8080
23-
```
15+
3. Create a file named `Dockerfile` or use [this one](Dockerfile)
2416
4. Run the following command to build the docker container `docker build -t paymentcomponents/rest-sdk-wrapper .`
2517
5. Run the following command to run the docker
2618
container `docker run -p 8089:8080 -n rest-sdk-wrapper paymentcomponents/rest-sdk-wrapper`

pom.xml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,16 @@
1010
</parent>
1111
<groupId>com.paymentcomponents.libraries</groupId>
1212
<artifactId>rest-sdk-wrapper</artifactId>
13-
<version>1.7.5</version>
13+
<version>1.8.0</version>
1414
<name>rest-sdk-wrapper</name>
1515
<description>Wrapper for Payment Components Financial Messaging Libraries</description>
16-
<packaging>war</packaging>
1716

1817
<properties>
1918
<java.version>1.8</java.version>
20-
<smv.version>21.27.0</smv.version>
21-
<mx.version>21.7.0</mx.version>
19+
<smv.version>21.27.1</smv.version>
20+
<mx.version>21.8.0</mx.version>
2221
<sepa.version>21.6.0</sepa.version>
23-
<swift.translator.version>3.5.1</swift.translator.version>
22+
<swift.translator.version>3.6.0</swift.translator.version>
2423
</properties>
2524

2625
<repositories>
@@ -35,11 +34,6 @@
3534
<groupId>org.springframework.boot</groupId>
3635
<artifactId>spring-boot-starter-web</artifactId>
3736
</dependency>
38-
<dependency>
39-
<groupId>org.springframework.boot</groupId>
40-
<artifactId>spring-boot-starter-tomcat</artifactId>
41-
<scope>provided</scope>
42-
</dependency>
4337
<dependency>
4438
<groupId>org.springframework.boot</groupId>
4539
<artifactId>spring-boot-starter-test</artifactId>
@@ -91,12 +85,6 @@
9185
</version> <!--For 2.12.X, advice https://cowtowncoder.medium.com/jackson-2-12-most-wanted-4-5-cbc91c00bcd2-->
9286
</dependency>
9387

94-
<dependency>
95-
<groupId>org.reflections</groupId>
96-
<artifactId>reflections</artifactId>
97-
<version>0.9.12</version>
98-
</dependency>
99-
10088
<dependency>
10189
<groupId>org.springdoc</groupId>
10290
<artifactId>springdoc-openapi-ui</artifactId>

src/main/java/com/paymentcomponents/libraries/rest/sdk/wrapper/RestSdkWrapperApplication.java

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,9 @@
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;
5-
import org.springframework.boot.builder.SpringApplicationBuilder;
6-
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
75

86
@SpringBootApplication
9-
public class RestSdkWrapperApplication extends SpringBootServletInitializer {
10-
11-
@Override
12-
protected SpringApplicationBuilder configure(SpringApplicationBuilder application) {
13-
return application.sources(RestSdkWrapperApplication.class);
14-
}
7+
public class RestSdkWrapperApplication {
158

169
public static void main(String[] args) {
1710
SpringApplication.run(RestSdkWrapperApplication.class, args);

src/main/java/com/paymentcomponents/libraries/rest/sdk/wrapper/RestSdkWrapperConfiguration.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ public OpenAPI openApiInfo() {
1717
.info(new Info()
1818
.title("Payment Components")
1919
.description("Financial Messaging APIs")
20-
.version("1.1.0")); //should be the same as maven
20+
.version("1.8.0")); //should be the same as maven
2121
}
2222

2323
@Bean

src/main/java/com/paymentcomponents/libraries/rest/sdk/wrapper/filter/RequestLogIdFilter.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
import java.io.IOException;
1111
import java.util.UUID;
1212

13-
//@Component
1413
public class RequestLogIdFilter implements Filter {
1514

1615
private final static Logger LOG = LoggerFactory.getLogger(RequestLogIdFilter.class);

0 commit comments

Comments
 (0)