Skip to content

Commit

Permalink
Add nativeImage closure with args
Browse files Browse the repository at this point in the history
These were recommended by @ilopmar in a comment
on micronaut-acme Issue 154:
micronaut-projects/micronaut-acme#154 (comment)
  • Loading branch information
msgilligan committed Jul 1, 2021

Verified

This commit was signed with the committer’s verified signature.
1 parent 0514ac9 commit 227193c
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -71,6 +71,12 @@ test {
environment(['MICRONAUT_CONFIG_FILES':''])
}

nativeImage {
args = [
'--initialize-at-run-time=io.netty.handler.ssl.OpenSsl,io.netty.handler.ssl.OpenSslPrivateKeyMethod,io.netty.internal.tcnative.CertificateVerifier,io.netty.internal.tcnative.SSL,io.netty.internal.tcnative.SSLPrivateKeyMethod'
]
}

dockerBuild {
images = ["${System.env.DOCKER_IMAGE ?: project.name}:$project.version"]
}

0 comments on commit 227193c

Please sign in to comment.