Skip to content

Commit

Permalink
Build multi-platform image
Browse files Browse the repository at this point in the history
  • Loading branch information
rm3l committed Nov 1, 2023
1 parent ab730d1 commit fcf3741
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion application/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,12 +73,25 @@ jib {
to {
image = "${project.group}/${project.parent.name}"
}
from {
image = 'registry.access.redhat.com/ubi9/openjdk-17:1.16-3'
platforms {
platform {
architecture = 'amd64'
os = 'linux'
}
platform {
architecture = 'arm64'
os = 'linux'
}
}
}
container {
labels = [
"maintainer": "Armel Soro <armel@rm3l.org>"
]
jvmFlags = ['-Djava.security.egd=file:/dev/./urandom']
ports = ['8080', '8081']
format = 'OCI'
format = 'Docker'
}
}

0 comments on commit fcf3741

Please sign in to comment.