Skip to content
This repository was archived by the owner on Jun 2, 2025. It is now read-only.

Commit 2b0b72a

Browse files
committed
patched docker container and resolved issue with maven shade plugin with spring-boot-starter-parent
1 parent 5c419fe commit 2b0b72a

File tree

2 files changed

+26
-5
lines changed

2 files changed

+26
-5
lines changed

Dockerfile

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ RUN apt-get update \
1818
zlib1g-dev
1919

2020
RUN apt -y update
21+
2122

2223
ARG OPENSSL_VERSION=1.1.1q
2324
ARG PYTHON=python3
@@ -69,17 +70,27 @@ RUN find / -depth -name surefire -type d -exec rm -r "{}" \;
6970
# comment out if need to use maven utilities
7071
RUN rm /usr/share/java/maven-shared-utils.jar
7172

73+
# remove wagon-http-shaded jar file with vulnerabilities associated with org.jsoup:jsoup
74+
RUN rm /usr/share/java/wagon-http-shaded-3.3.4.jar
75+
7276
# remove plexus-utils directory because plexus-utils has vulnerabilities
7377
# comment out if need to use maven utilities
7478
RUN find / -depth -name plexus-utils -type d -exec rm -r "{}" \;
7579

7680
# remove old version of json-smart with vulnerability
77-
RUN find / -depth -name json-smart -type d -exec rm -r "{}/2.3" \;
81+
# RUN find / -depth -name json-smart -type d -exec rm -r "{}/2.3" \;
7882

7983
# remove old version of commons-compress with vulnerability
80-
RUN find / -depth -name commons-compress -type d -exec rm -r "{}/1.18" \;
84+
RUN find / -depth -name commons-compress -type d -exec rm -r "{}/1.20" \;
85+
86+
# remove jar files from common-io v2.5 and 2.6 both have vulnerabilities
87+
RUN find / -name commons-io*2.5.jar -type f -exec rm "{}" \;
88+
RUN find / -name commons-io*2.6.jar -type f -exec rm "{}" \;
8189

8290
# remove old version of spring-core with vulnerability
83-
RUN find / -depth -name spring-core -type d -exec rm -r "{}/5.1.19.RELEASE" \;
91+
# RUN find / -depth -name spring-core -type d -exec rm -r "{}/5.1.19.RELEASE" \;
92+
93+
# remove jackson-databind
94+
RUN find / -name jackson-databind -type d -exec rm -r "{}/2.13.3" \;
8495

8596
ENTRYPOINT ["/usr/local/bin/serve.sh"]

pom.xml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<parent>
2020
<groupId>org.springframework.boot</groupId>
2121
<artifactId>spring-boot-starter-parent</artifactId>
22-
<version>2.1.18.RELEASE</version>
22+
<version>2.7.0</version>
2323
</parent>
2424
<modelVersion>4.0.0</modelVersion>
2525
<groupId>org.amazonaws.sagemaker</groupId>
@@ -39,7 +39,7 @@
3939
<plugin>
4040
<groupId>org.apache.maven.plugins</groupId>
4141
<artifactId>maven-shade-plugin</artifactId>
42-
<version>3.4.0</version>
42+
<version>3.4.1</version>
4343
<executions>
4444
<execution>
4545
<phase>package</phase>
@@ -190,6 +190,11 @@
190190
</exclusion>
191191
</exclusions>
192192
</dependency>
193+
<dependency>
194+
<groupId>org.springframework.boot</groupId>
195+
<artifactId>spring-boot-starter</artifactId>
196+
<version>2.7.5</version>
197+
</dependency>
193198
<dependency>
194199
<groupId>org.powermock</groupId>
195200
<artifactId>powermock-api-mockito2</artifactId>
@@ -385,6 +390,11 @@
385390
<artifactId>jsoup</artifactId>
386391
<version>1.15.3</version>
387392
</dependency>
393+
<dependency>
394+
<groupId>ch.qos.logback</groupId>
395+
<artifactId>logback-core</artifactId>
396+
<version>1.2.11</version>
397+
</dependency>
388398
</dependencies>
389399
<properties>
390400
<java.version>1.8</java.version>

0 commit comments

Comments
 (0)