Skip to content

Instantly share code, notes, and snippets.

@nebhale
Last active July 10, 2020 17:43
Show Gist options
  • Save nebhale/359007620a2334b781cca21f59c09b79 to your computer and use it in GitHub Desktop.
Save nebhale/359007620a2334b781cca21f59c09b79 to your computer and use it in GitHub Desktop.
➜ ~/D/gradle-boot-2.1.15 pack build applications/gradle-boot-2.1.15 --builder gcr.io/paketo-buildpacks/builder:base
base: Pulling from paketo-buildpacks/builder
Digest: sha256:87ad8bffbb48e2b761ce00656d92a3138f8b29933ea8a008428eb1cfbdb42961
Status: Image is up to date for gcr.io/paketo-buildpacks/builder:base
base-cnb: Pulling from paketobuildpacks/run
Digest: sha256:75aee51f084a06ec4b87d2e2c9350768e6cddbaea15e07beb9b162738e4fa274
Status: Image is up to date for paketobuildpacks/run:base-cnb
===> DETECTING
6 of 15 buildpacks participating
paketo-buildpacks/bellsoft-liberica 2.8.1
paketo-buildpacks/gradle 1.4.1
paketo-buildpacks/executable-jar 1.2.8
paketo-buildpacks/apache-tomcat 1.3.1
paketo-buildpacks/dist-zip 1.3.6
paketo-buildpacks/spring-boot 1.9.1
===> ANALYZING
Previous image with name "index.docker.io/applications/gradle-boot-2.1.15:latest" not found
===> RESTORING
===> BUILDING
Paketo BellSoft Liberica Buildpack 2.8.1
https://github.com/paketo-buildpacks/bellsoft-liberica
Build Configuration:
$BP_JVM_VERSION 11.* the Java version
Launch Configuration:
$BPL_JVM_HEAD_ROOM 0 the headroom in memory calculation
$BPL_JVM_LOADED_CLASS_COUNT 35% of classes the number of loaded classes in memory calculation
$BPL_JVM_THREAD_COUNT 250 the number of threads in memory calculation
BellSoft Liberica JDK 11.0.7: Contributing to layer
Downloading from https://github.com/bell-sw/Liberica/releases/download/11.0.7+10/bellsoft-jdk11.0.7+10-linux-amd64.tar.gz
Verifying checksum
Expanding to /layers/paketo-buildpacks_bellsoft-liberica/jdk
Adding 127 container CA certificates to JVM truststore
Writing env.build/JAVA_HOME.override
Writing env.build/JDK_HOME.override
BellSoft Liberica JRE 11.0.7: Contributing to layer
Downloading from https://github.com/bell-sw/Liberica/releases/download/11.0.7+10/bellsoft-jre11.0.7+10-linux-amd64.tar.gz
Verifying checksum
Expanding to /layers/paketo-buildpacks_bellsoft-liberica/jre
Writing env.launch/JAVA_HOME.override
Writing env.launch/MALLOC_ARENA_MAX.override
Writing profile.d/active-processor-count.sh
Memory Calculator 4.0.0: Contributing to layer
Downloading from https://github.com/cloudfoundry/java-buildpack-memory-calculator/releases/download/v4.0.0/memory-calculator-4.0.0.tgz
Verifying checksum
Expanding to /layers/paketo-buildpacks_bellsoft-liberica/memory-calculator
Writing profile.d/memory-calculator.sh
Class Counter: Contributing to layer
Copying to /layers/paketo-buildpacks_bellsoft-liberica/class-counter
JVMKill Agent 1.16.0: Contributing to layer
Downloading from https://github.com/cloudfoundry/jvmkill/releases/download/v1.16.0.RELEASE/jvmkill-1.16.0-RELEASE.so
Verifying checksum
Copying to /layers/paketo-buildpacks_bellsoft-liberica/jvmkill
Writing env.launch/JAVA_OPTS.append
Link-Local DNS: Contributing to layer
Copying to /layers/paketo-buildpacks_bellsoft-liberica/link-local-dns
Writing profile.d/link-local-dns.sh
Java Security Properties: Contributing to layer
Writing env.launch/JAVA_OPTS.append
Writing env.launch/JAVA_SECURITY_PROPERTIES.override
Security Providers Configurer: Contributing to layer
Copying to /layers/paketo-buildpacks_bellsoft-liberica/security-providers-configurer
Writing profile.d/security-providers-classpath.sh
Writing profile.d/security-providers-configurer.sh
OpenSSL Certificate Loader: Contributing to layer
Copying to /layers/paketo-buildpacks_bellsoft-liberica/openssl-security-provider
Writing profile.d/openssl-certificate-loader.sh
Paketo Gradle Buildpack 1.4.1
https://github.com/paketo-buildpacks/gradle
Build Configuration:
$BP_GRADLE_BUILD_ARGUMENTS --no-daemon -x test build the arguments to pass to Maven
$BP_GRADLE_BUILT_ARTIFACT build/libs/*.[jw]ar the built application artifact explicitly. Supersedes $BP_GRADLE_BUILT_MODULE
$BP_GRADLE_BUILT_MODULE the module to find application artifact in
Creating cache directory /home/cnb/.gradle
Compiled Application: Contributing to layer
Executing gradlew --no-daemon -x test build
Downloading https://services.gradle.org/distributions/gradle-5.6.4-bin.zip
.........................................................................................
Welcome to Gradle 5.6.4!
Here are the highlights of this release:
- Incremental Groovy compilation
- Groovy compile avoidance
- Test fixtures for Java projects
- Manage plugin versions via settings script
For more details see https://docs.gradle.org/5.6.4/release-notes.html
WARNING: An illegal reflective access operation has occurred
WARNING: Illegal reflective access by org.codehaus.groovy.vmplugin.v7.Java7$1 (file:/home/cnb/.gradle/wrapper/dists/gradle-5.6.4-bin/bxirm19lnfz6nurbatndyydux/gradle-5.6.4/lib/groovy-all-1.3-2.5.4.jar) to constructor java.lang.invoke.MethodHandles$Lookup(java.lang.Class,int)
WARNING: Please consider reporting this to the maintainers of org.codehaus.groovy.vmplugin.v7.Java7$1
WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
WARNING: All illegal access operations will be denied in a future release
> Task :compileJava
> Task :processResources
> Task :classes
> Task :bootJar
> Task :jar SKIPPED
> Task :assemble
> Task :check
> Task :build
BUILD SUCCESSFUL in 41s
3 actionable tasks: 3 executed
Removing source code
Paketo Executable JAR Buildpack 1.2.8
https://github.com/paketo-buildpacks/executable-jar
Writing env.launch/CLASSPATH
Process types:
executable-jar: java -cp "${CLASSPATH}" ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher
task: java -cp "${CLASSPATH}" ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher
web: java -cp "${CLASSPATH}" ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher
Paketo Spring Boot Buildpack 1.9.1
https://github.com/paketo-buildpacks/spring-boot
Build Configuration:
$BP_BOOT_NATIVE_IMAGE the build to create a native image (requires GraalVM)
$BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS the arguments to pass to the native-image command
This application uses Spring Boot 2.1.15.RELEASE. Open Source updates for 2.1.x ended on 2019-10-01.
Web Application Type: Contributing to layer
Reactive web application detected
Writing env.launch/BPL_JVM_THREAD_COUNT.default
Image labels:
org.springframework.boot.spring-configuration-metadata.json
org.springframework.boot.version
===> EXPORTING
Adding layer 'launcher'
Adding layer 'paketo-buildpacks/bellsoft-liberica:class-counter'
Adding layer 'paketo-buildpacks/bellsoft-liberica:java-security-properties'
Adding layer 'paketo-buildpacks/bellsoft-liberica:jre'
Adding layer 'paketo-buildpacks/bellsoft-liberica:jvmkill'
Adding layer 'paketo-buildpacks/bellsoft-liberica:link-local-dns'
Adding layer 'paketo-buildpacks/bellsoft-liberica:memory-calculator'
Adding layer 'paketo-buildpacks/bellsoft-liberica:openssl-security-provider'
Adding layer 'paketo-buildpacks/bellsoft-liberica:security-providers-configurer'
Adding layer 'paketo-buildpacks/executable-jar:class-path'
Adding layer 'paketo-buildpacks/spring-boot:web-application-type'
Adding 1/1 app layer(s)
Adding layer 'config'
*** Images (eeca21d0fe5d):
index.docker.io/applications/gradle-boot-2.1.15:latest
Adding cache layer 'paketo-buildpacks/bellsoft-liberica:jdk'
Adding cache layer 'paketo-buildpacks/gradle:application'
Adding cache layer 'paketo-buildpacks/gradle:cache'
Successfully built image applications/gradle-boot-2.1.15
Time: 0h:01m:36s
➜ ~/D/gradle-boot-2.1.15 docker run -t -p 8080:8080 applications/gradle-boot-2.1.15
Container memory limit unset. Configuring JVM for 1G container.
Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=87706K -XX:ReservedCodeCacheSize=240M -Xss1M -Xmx653669K (Head Room: 0%, Loaded Class Count: 13071, Thread Count: 50, Total Memory: 1073741824)
Adding 127 container CA certificates to JVM truststore
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.1.15.RELEASE)
2020-07-10 17:42:33.276 INFO 1 --- [ main] io.paketo.gradleboot215.Application : Starting Application on b9b2c1200bbe with PID 1 (/workspace/BOOT-INF/classes started by cnb in /workspace)
2020-07-10 17:42:33.281 INFO 1 --- [ main] io.paketo.gradleboot215.Application : No active profile set, falling back to default profiles: default
2020-07-10 17:42:37.467 INFO 1 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2020-07-10 17:42:38.719 INFO 1 --- [ main] o.s.b.web.embedded.netty.NettyWebServer : Netty started on port(s): 8080
2020-07-10 17:42:38.726 INFO 1 --- [ main] io.paketo.gradleboot215.Application : Started Application in 6.674 seconds (JVM running for 7.669)
➜ ~/D/gradle-boot-2.2.8 pack build applications/gradle-boot-2.2.8 --builder gcr.io/paketo-buildpacks/builder:base
base: Pulling from paketo-buildpacks/builder
Digest: sha256:87ad8bffbb48e2b761ce00656d92a3138f8b29933ea8a008428eb1cfbdb42961
Status: Image is up to date for gcr.io/paketo-buildpacks/builder:base
base-cnb: Pulling from paketobuildpacks/run
Digest: sha256:75aee51f084a06ec4b87d2e2c9350768e6cddbaea15e07beb9b162738e4fa274
Status: Image is up to date for paketobuildpacks/run:base-cnb
===> DETECTING
6 of 15 buildpacks participating
paketo-buildpacks/bellsoft-liberica 2.8.1
paketo-buildpacks/gradle 1.4.1
paketo-buildpacks/executable-jar 1.2.8
paketo-buildpacks/apache-tomcat 1.3.1
paketo-buildpacks/dist-zip 1.3.6
paketo-buildpacks/spring-boot 1.9.1
===> ANALYZING
Previous image with name "index.docker.io/applications/gradle-boot-2.2.8:latest" not found
===> RESTORING
===> BUILDING
Paketo BellSoft Liberica Buildpack 2.8.1
https://github.com/paketo-buildpacks/bellsoft-liberica
Build Configuration:
$BP_JVM_VERSION 11.* the Java version
Launch Configuration:
$BPL_JVM_HEAD_ROOM 0 the headroom in memory calculation
$BPL_JVM_LOADED_CLASS_COUNT 35% of classes the number of loaded classes in memory calculation
$BPL_JVM_THREAD_COUNT 250 the number of threads in memory calculation
BellSoft Liberica JDK 11.0.7: Contributing to layer
Downloading from https://github.com/bell-sw/Liberica/releases/download/11.0.7+10/bellsoft-jdk11.0.7+10-linux-amd64.tar.gz
Verifying checksum
Expanding to /layers/paketo-buildpacks_bellsoft-liberica/jdk
Adding 127 container CA certificates to JVM truststore
Writing env.build/JAVA_HOME.override
Writing env.build/JDK_HOME.override
BellSoft Liberica JRE 11.0.7: Contributing to layer
Downloading from https://github.com/bell-sw/Liberica/releases/download/11.0.7+10/bellsoft-jre11.0.7+10-linux-amd64.tar.gz
Verifying checksum
Expanding to /layers/paketo-buildpacks_bellsoft-liberica/jre
Writing env.launch/JAVA_HOME.override
Writing env.launch/MALLOC_ARENA_MAX.override
Writing profile.d/active-processor-count.sh
Memory Calculator 4.0.0: Contributing to layer
Downloading from https://github.com/cloudfoundry/java-buildpack-memory-calculator/releases/download/v4.0.0/memory-calculator-4.0.0.tgz
Verifying checksum
Expanding to /layers/paketo-buildpacks_bellsoft-liberica/memory-calculator
Writing profile.d/memory-calculator.sh
Class Counter: Contributing to layer
Copying to /layers/paketo-buildpacks_bellsoft-liberica/class-counter
JVMKill Agent 1.16.0: Contributing to layer
Downloading from https://github.com/cloudfoundry/jvmkill/releases/download/v1.16.0.RELEASE/jvmkill-1.16.0-RELEASE.so
Verifying checksum
Copying to /layers/paketo-buildpacks_bellsoft-liberica/jvmkill
Writing env.launch/JAVA_OPTS.append
Link-Local DNS: Contributing to layer
Copying to /layers/paketo-buildpacks_bellsoft-liberica/link-local-dns
Writing profile.d/link-local-dns.sh
Java Security Properties: Contributing to layer
Writing env.launch/JAVA_OPTS.append
Writing env.launch/JAVA_SECURITY_PROPERTIES.override
Security Providers Configurer: Contributing to layer
Copying to /layers/paketo-buildpacks_bellsoft-liberica/security-providers-configurer
Writing profile.d/security-providers-classpath.sh
Writing profile.d/security-providers-configurer.sh
OpenSSL Certificate Loader: Contributing to layer
Copying to /layers/paketo-buildpacks_bellsoft-liberica/openssl-security-provider
Writing profile.d/openssl-certificate-loader.sh
Paketo Gradle Buildpack 1.4.1
https://github.com/paketo-buildpacks/gradle
Build Configuration:
$BP_GRADLE_BUILD_ARGUMENTS --no-daemon -x test build the arguments to pass to Maven
$BP_GRADLE_BUILT_ARTIFACT build/libs/*.[jw]ar the built application artifact explicitly. Supersedes $BP_GRADLE_BUILT_MODULE
$BP_GRADLE_BUILT_MODULE the module to find application artifact in
Creating cache directory /home/cnb/.gradle
Compiled Application: Contributing to layer
Executing gradlew --no-daemon -x test build
Downloading https://services.gradle.org/distributions/gradle-6.4.1-bin.zip
.........10%..........20%..........30%..........40%.........50%..........60%..........70%..........80%.........90%..........100%
Welcome to Gradle 6.4.1!
Here are the highlights of this release:
- Support for building, testing and running Java Modules
- Precompiled script plugins for Groovy DSL
- Single dependency lock file per project
For more details see https://docs.gradle.org/6.4.1/release-notes.html
To honour the JVM settings for this build a new JVM will be forked. Please consider using the daemon: https://docs.gradle.org/6.4.1/userguide/gradle_daemon.html.
Daemon will be stopped at the end of the build stopping after processing
> Task :compileJava
> Task :processResources
> Task :classes
> Task :bootJar
> Task :jar SKIPPED
> Task :assemble
> Task :check
> Task :build
BUILD SUCCESSFUL in 44s
3 actionable tasks: 3 executed
Removing source code
Paketo Executable JAR Buildpack 1.2.8
https://github.com/paketo-buildpacks/executable-jar
Writing env.launch/CLASSPATH
Process types:
executable-jar: java -cp "${CLASSPATH}" ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher
task: java -cp "${CLASSPATH}" ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher
web: java -cp "${CLASSPATH}" ${JAVA_OPTS} org.springframework.boot.loader.JarLauncher
Paketo Spring Boot Buildpack 1.9.1
https://github.com/paketo-buildpacks/spring-boot
Build Configuration:
$BP_BOOT_NATIVE_IMAGE the build to create a native image (requires GraalVM)
$BP_BOOT_NATIVE_IMAGE_BUILD_ARGUMENTS the arguments to pass to the native-image command
Web Application Type: Contributing to layer
Reactive web application detected
Writing env.launch/BPL_JVM_THREAD_COUNT.default
Image labels:
org.springframework.boot.spring-configuration-metadata.json
org.springframework.boot.version
===> EXPORTING
Adding layer 'launcher'
Adding layer 'paketo-buildpacks/bellsoft-liberica:class-counter'
Adding layer 'paketo-buildpacks/bellsoft-liberica:java-security-properties'
Adding layer 'paketo-buildpacks/bellsoft-liberica:jre'
Adding layer 'paketo-buildpacks/bellsoft-liberica:jvmkill'
Adding layer 'paketo-buildpacks/bellsoft-liberica:link-local-dns'
Adding layer 'paketo-buildpacks/bellsoft-liberica:memory-calculator'
Adding layer 'paketo-buildpacks/bellsoft-liberica:openssl-security-provider'
Adding layer 'paketo-buildpacks/bellsoft-liberica:security-providers-configurer'
Adding layer 'paketo-buildpacks/executable-jar:class-path'
Adding layer 'paketo-buildpacks/spring-boot:web-application-type'
Adding 1/1 app layer(s)
Adding layer 'config'
*** Images (340a753bb3f1):
index.docker.io/applications/gradle-boot-2.2.8:latest
Adding cache layer 'paketo-buildpacks/bellsoft-liberica:jdk'
Adding cache layer 'paketo-buildpacks/gradle:application'
Adding cache layer 'paketo-buildpacks/gradle:cache'
Successfully built image applications/gradle-boot-2.2.8
Time: 0h:01m:37s
➜ ~/D/gradle-boot-2.2.8 docker run -t -p 8080:8080 applications/gradle-boot-2.2.8
Container memory limit unset. Configuring JVM for 1G container.
Calculated JVM Memory Configuration: -XX:MaxDirectMemorySize=10M -XX:MaxMetaspaceSize=88901K -XX:ReservedCodeCacheSize=240M -Xss1M -Xmx652474K (Head Room: 0%, Loaded Class Count: 13282, Thread Count: 50, Total Memory: 1073741824)
Adding 127 container CA certificates to JVM truststore
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Boot :: (v2.2.8.RELEASE)
2020-07-10 16:04:30.056 INFO 1 --- [ main] io.paketo.gradleboot228.Application : Starting Application on 8c76459a3ae7 with PID 1 (/workspace/BOOT-INF/classes started by cnb in /workspace)
2020-07-10 16:04:30.063 INFO 1 --- [ main] io.paketo.gradleboot228.Application : No active profile set, falling back to default profiles: default
2020-07-10 16:04:31.641 INFO 1 --- [ main] o.s.b.a.e.web.EndpointLinksResolver : Exposing 2 endpoint(s) beneath base path '/actuator'
2020-07-10 16:04:32.348 INFO 1 --- [ main] o.s.b.web.embedded.netty.NettyWebServer : Netty started on port(s): 8080
2020-07-10 16:04:32.356 INFO 1 --- [ main] io.paketo.gradleboot228.Application : Started Application in 2.966 seconds (JVM running for 3.493)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment