-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CORE-4992: Create a ZIP artifact containing the YourKit profiler agen…
…t. (#1457) * CORE-4992: Create a ZIP artifact containing the YourKit profiler agent. * Optionally add profiler agent to Docker images. * Refactor publishOSGiImage task into corda.docker-app convention plugin. * Add profiling support to the chart. * Add engineering-tools-maven repository for YourKit Java Profiler agent.
- Loading branch information
Showing
20 changed files
with
237 additions
and
59 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
plugins { | ||
id 'corda.common-app' | ||
} | ||
|
||
configurations { | ||
dockerImage { | ||
canBeConsumed = false | ||
transitive = false | ||
} | ||
|
||
profilerAgent { | ||
canBeConsumed = false | ||
visible = false | ||
} | ||
} | ||
|
||
if (enableProfiling.toBoolean()) { | ||
dependencies { | ||
// Unzip the Java profiler into the Docker image. | ||
profilerAgent "com.yourkit.corda:yourkit-agent-linux-x86-64:$profilerVersion@zip" | ||
dockerImage provider { zipTree(configurations.profilerAgent.singleFile) } | ||
} | ||
} | ||
|
||
tasks.register('publishOSGiImage', DeployableContainerBuilder) { | ||
it.sourceFiles.setFrom(tasks.named('appJar', Jar)) | ||
it.extraSourceFiles.setFrom(configurations.dockerImage) | ||
it.useShortName = true | ||
|
||
if (project.hasProperty('jibRemotePublish')) { | ||
remotePublish = jibRemotePublish.toBoolean() | ||
} | ||
|
||
if (project.hasProperty('isReleaseCandidate')) { | ||
releaseCandidate = isReleaseCandidate.toBoolean() | ||
} | ||
|
||
if (project.hasProperty('isNightly')) { | ||
nightlyBuild = isNightly.toBoolean() | ||
} | ||
|
||
if (project.hasProperty('isPreTest')) { | ||
preTest = isPreTest.toBoolean() | ||
} | ||
|
||
if (project.hasProperty('baseImage')) { | ||
baseImageName = baseImage | ||
} | ||
|
||
if (project.hasProperty('useDockerDaemon')) { | ||
useDaemon = useDockerDaemon.toBoolean() | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.