Skip to content

Commit

Permalink
Spring Web (Native as well) are actualized.
Browse files Browse the repository at this point in the history
  • Loading branch information
vadzimkavalkou committed Nov 16, 2023
1 parent 81ceef3 commit 0549f9f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 4 deletions.
19 changes: 17 additions & 2 deletions spring-boot-web-native/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
plugins {
java
application
id("org.hibernate.orm")
id("org.springframework.boot") version "3.1.5"
id("io.spring.dependency-management") version "1.1.4"
id("org.graalvm.buildtools.native") version "0.9.28"
id("org.hibernate.orm")
id("com.google.cloud.tools.jib") version "3.4.0"
}

group = "by.vk"
Expand Down Expand Up @@ -56,4 +57,18 @@ hibernate {
enableAssociationManagement = true
enableExtendedEnhancement = false
})
}
}

jib {
to {
image = "swn-service:latest"
}
from {
image = "gcr.io/distroless/java17:latest"
}
container {
ports = listOf("8080")
labels.set(mapOf("appname" to application.applicationName, "version" to version.toString(), "maintainer" to "Vadzim Kavalkou <[email protected]>"))
creationTime.set("USE_CURRENT_TIMESTAMP")
}
}
4 changes: 2 additions & 2 deletions spring-boot-web/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ object JVMProps {

jib {
to {
image = "spring-web-a2b-service:latest"
image = "sw-service:latest"
}
from {
image = "gcr.io/distroless/java21-debian12:latest"
image = "gcr.io/distroless/java17:latest"
}
container {
jvmFlags = listOf(
Expand Down

0 comments on commit 0549f9f

Please sign in to comment.