Skip to content

Instantly share code, notes, and snippets.

@kelapure
Last active November 10, 2015 21:16
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kelapure/b0f516b81711ef97b4ae to your computer and use it in GitHub Desktop.
Save kelapure/b0f516b81711ef97b4ae to your computer and use it in GitHub Desktop.
https://github.com/cloudfoundry-community/tomee-buildpack is now a viable option for pushing Java EE apps
Rohit-Kelapures-MacBook-Pro:spring-music rkelapure$ cf push spring-music -b https://github.com/cloudfoundry-community/tomee-buildpack.git
Using manifest file /Users/rkelapure/git/spring-music/manifest.yml

Creating app spring-music in org EVP / space pse-staging as rkelapure@pivotal.io...
OK

Creating route spring-music-halloween.cfapps.io...
OK

Binding spring-music-halloween.cfapps.io to spring-music...
OK

Uploading spring-music...
Uploading app files from: /Users/rkelapure/git/spring-music/build/libs/spring-music.war
Uploading 934.6K, 96 files
Done uploading               
OK

Starting app spring-music in org EVP / space pse-staging as rkelapure@pivotal.io...
Creating container
Successfully created container
Downloading app package...
Downloaded app package (21.4M)
Downloading buildpacks (https://github.com/cloudfoundry-community/tomee-buildpack.git)...
Downloaded buildpacks
Staging...
-----> Java Buildpack Version: b716fbb | https://github.com/cloudfoundry-community/tomee-buildpack.git#b716fbb
-----> Downloading Open Jdk JRE 1.8.0_65 from https://download.run.pivotal.io/openjdk/trusty/x86_64/openjdk-1.8.0_65.tar.gz (0.9s)
       Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.0s)
-----> Downloading Open JDK Like Memory Calculator 2.0.1_RELEASE from https://download.run.pivotal.io/memory-calculator/trusty/x86_64/memory-calculator-2.0.1_RELEASE.tar.gz (0.1s)
       Memory Settings: -Xss1M -Xms768M -XX:MetaspaceSize=104857K -Xmx768M -XX:MaxMetaspaceSize=104857K
-----> Downloading Spring Auto Reconfiguration 1.10.0_RELEASE from https://download.run.pivotal.io/auto-reconfiguration/auto-reconfiguration-1.10.0_RELEASE.jar (0.1s)
       Modifying /WEB-INF/web.xml for Auto Reconfiguration
-----> Downloading Tomcat Instance 1.7.2 from https://download.run.pivotal.io/tomee/tomee-1.7.2.tar.gz (1.3s)
       Expanding Tomcat to .java-buildpack/tomee (0.3s)
-----> Downloading Tomcat Lifecycle Support 2.4.0_RELEASE from https://download.run.pivotal.io/tomcat-lifecycle-support/tomcat-lifecycle-support-2.4.0_RELEASE.jar (0.0s)
-----> Downloading Tomcat Logging Support 2.4.0_RELEASE from https://download.run.pivotal.io/tomcat-logging-support/tomcat-logging-support-2.4.0_RELEASE.jar (0.0s)
-----> Downloading Tomcat Access Logging Support 2.4.0_RELEASE from https://download.run.pivotal.io/tomcat-access-logging-support/tomcat-access-logging-support-2.4.0_RELEASE.jar (0.0s)

Exit status 0
Uploading droplet, build artifacts cache...
Uploading droplet...
Uploading build artifacts cache...
Uploaded build artifacts cache (74.1M)
Uploaded droplet (94.8M)
Uploading complete

0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
0 of 1 instances running, 1 starting
1 of 1 instances running

App started


OK

App spring-music was started using this command `CALCULATED_MEMORY=$($PWD/.java-buildpack/open_jdk_jre/bin/java-buildpack-memory-calculator-2.0.1_RELEASE -memorySizes=metaspace:64m.. -memoryWeights=heap:75,metaspace:10,native:10,stack:5 -memoryInitials=heap:100%,metaspace:100% -totMemory=$MEMORY_LIMIT) &&  JAVA_HOME=$PWD/.java-buildpack/open_jdk_jre JAVA_OPTS="-Djava.io.tmpdir=$TMPDIR -XX:OnOutOfMemoryError=$PWD/.java-buildpack/open_jdk_jre/bin/killjava.sh $CALCULATED_MEMORY -XX:+PrintGCDateStamps -XX:+PrintGCDetails -Xloggc:./jvm-gc.log -XX:NativeMemoryTracking=detail -Daccess.logging.enabled=false -Dhttp.port=$PORT" $PWD/.java-buildpack/tomee/bin/catalina.sh run`

Showing health and status for app spring-music in org EVP / space pse-staging as rkelapure@pivotal.io...
OK

requested state: started
instances: 1/1
usage: 1G x 1 instances
urls: spring-music-halloween.cfapps.io
last uploaded: Tue Nov 10 20:23:28 UTC 2015
stack: cflinuxfs2

     state     since                    cpu    memory    disk      details   
#0   running   2015-11-10 03:24:36 PM   0.0%   0 of 1G   0 of 1G      
Rohit-Kelapures-MacBook-Pro:spring-music rkelapure$ 
Rohit-Kelapures-MacBook-Pro:spring-music rkelapure$ cf apps
Getting apps in org EVP / space pse-staging as rkelapure@pivotal.io...
OK

name           requested state   instances   memory   disk   urls   
fizzbuzz       started           1/1         1G       1G     fizzbuzz.cfapps.io   
spring-music   started           1/1         1G       1G     spring-music-halloween.cfapps.io   
Rohit-Kelapures-MacBook-Pro:spring-music rkelapure$ cf app spring-music
Showing health and status for app spring-music in org EVP / space pse-staging as rkelapure@pivotal.io...
OK

requested state: started
instances: 1/1
usage: 1G x 1 instances
urls: spring-music-halloween.cfapps.io
last uploaded: Tue Nov 10 20:23:28 UTC 2015
stack: cflinuxfs2

     state     since                    cpu     memory         disk           details   
#0   running   2015-11-10 03:24:36 PM   11.9%   444.1M of 1G   209.2M of 1G   
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment