Skip to content

Commit

Permalink
Merge pull request #54 from OSGP/feature/FDP-2659-urandom
Browse files Browse the repository at this point in the history
FDP-2659: Added build arguments to JVM
  • Loading branch information
loesimmens authored Oct 7, 2024
2 parents 979a59c + c9e70af commit 5059358
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion application/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import org.springframework.boot.gradle.tasks.bundling.BootBuildImage
import org.springframework.boot.gradle.tasks.bundling.BootJar

// SPDX-FileCopyrightText: Copyright Contributors to the GXF project
Expand Down Expand Up @@ -49,6 +48,13 @@ tasks.withType<BootJar> {

tasks.withType<org.springframework.boot.gradle.tasks.bundling.BootBuildImage> {
imageName.set("ghcr.io/osgp/gxf-sng-crest-device-service:${version}")
environment.set(
mapOf(
"BPE_DELIM_JAVA_TOOL_OPTIONS" to " ",
"BPE_APPEND_JAVA_TOOL_OPTIONS" to "-Djava.security.egd=file:/dev/urandom"
)
)

if (project.hasProperty("publishImage")) {
publish.set(true)
docker {
Expand Down

0 comments on commit 5059358

Please sign in to comment.