Skip to content

Commit

Permalink
Bump [email protected] - added compilation support to native-image (#288)
Browse files Browse the repository at this point in the history
* Bump [email protected] - added compilation support to native-image

* chore: grouped RUN cmd - updated env template
  • Loading branch information
petruki authored Oct 5, 2024
1 parent d6aa5ac commit 13544b4
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 12 deletions.
5 changes: 2 additions & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,8 @@ FROM eclipse-temurin:21-jre-alpine AS builder
ARG JAR_FILE=/usr/src/app/target/*.jar
COPY --from=maven ${JAR_FILE} app.jar

RUN adduser -D user

RUN mkdir /etc/certs \
RUN adduser -D user \
&& mkdir /etc/certs \
&& mkdir -p /data/snapshots \
&& chown -R user:user /etc/certs \
&& chown -R user:user /data/snapshots
Expand Down
2 changes: 1 addition & 1 deletion docker-env/.env.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ SSL_KEY_STORE=classpath:keystore/switcherapi.p12
SSL_KEY_PASSWORD=
SSL_KEY_ALIAS=switcherapi

SWITCHER_URL=https://switcherapi.com/api
SWITCHER_URL=https://api.switcherapi.com
SWITCHER_KEY=
SWITCHER_ENV=default
SWITCHER_DOMAIN="Switcher API"
Expand Down
15 changes: 7 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>3.3.3</version>
<version>3.3.4</version>
</parent>

<properties>
Expand All @@ -69,11 +69,11 @@
<flapdoodle.embed.mongo.version>4.16.1</flapdoodle.embed.mongo.version>

<!-- Managed -->
<spring-webmvc.version>6.1.13</spring-webmvc.version>
<tomcat-embed-core.version>10.1.30</tomcat-embed-core.version>
<commons-compress.version>1.27.1</commons-compress.version>

<!-- Plugins -->
<native-image-plugin.version>0.10.3</native-image-plugin.version>
<maven-compiler.version>3.13.0</maven-compiler.version>
<sonar.version>4.0.0.4121</sonar.version>
<jacoco.version>0.8.12</jacoco.version>
Expand Down Expand Up @@ -311,12 +311,6 @@

<dependencyManagement>
<dependencies>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-webmvc</artifactId>
<version>${spring-webmvc.version}</version>
</dependency>

<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
Expand Down Expand Up @@ -356,6 +350,11 @@
</pluginManagement>

<plugins>
<plugin>
<groupId>org.graalvm.buildtools</groupId>
<artifactId>native-maven-plugin</artifactId>
<version>${native-image-plugin.version}</version>
</plugin>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
Expand Down

0 comments on commit 13544b4

Please sign in to comment.