oriented - loosely coupled, explicit dependencies Container packaged - isolated unit of application deployment Dynamically managed - central orchestration process Source: Cloud Native Computing Foundation
manifest file /Users/cwat-amayr/Documents/CloudFoundry/test-app/spring-music/manifest.yml Creating app spring-music in org amayr / space dev as admin... OK Using route spring-music-devone.apps.pcfeu.dev.dynatracelabs.com Binding spring-music-devone.apps.pcfeu.dev.dynatracelabs.com to spring-music... OK Uploading spring-music... Uploading app files from: /var/folders/mm/rs3p_4ns59sgz4g1xy4sprk4kl34fs/T/unzipped-app569800276 Uploading 452.5K, 90 files Done uploading OK
space dev as admin... Downloading java_buildpack_offline... Downloaded java_buildpack_offline Creating container Successfully created container Downloading app package... Downloaded app package (21.1M) Staging... -----> Java Buildpack Version: v3.16 (offline) | https://github.com/cloudfoundry/java-buildpack.git#2110750 -----> Downloading Open Jdk JRE 1.8.0_131 from https://java-buildpack.cloudfoundry.org/openjdk/trusty/x86_64/openjdk- 1.8.0_131.tar.gz (found in cache) Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.1s) -----> Downloading Open JDK Like Memory Calculator 2.0.2_RELEASE from https://java-buildpack.cloudfoundry.org/memory- calculator/trusty/x86_64/memory-calculator-2.0.2_RELEASE.tar.gz (found in cache) Memory Settings: -Xss349K -Xmx681574K -XX:MaxMetaspaceSize=104857K -Xms681574K -XX:MetaspaceSize=104857K -----> Downloading Container Certificate Trust Store 2.1.0_RELEASE from https://java-buildpack.cloudfoundry.org/container- certificate-trust-store/container-certificate-trust-store-2.1.0_RELEASE.jar (found in cache) Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (1.5s) -----> Downloading Spring Auto Reconfiguration 1.10.0_RELEASE from https://java-buildpack.cloudfoundry.org/auto- reconfiguration/auto-reconfiguration-1.10.0_RELEASE.jar (found in cache) -----> Downloading Tomcat Instance 8.0.43 from https://java-buildpack.cloudfoundry.org/tomcat/tomcat-8.0.43.tar.gz Expanding Tomcat Instance to .java-buildpack/tomcat (0.1s) -----> Downloading Tomcat Lifecycle Support 2.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-lifecycle- support/tomcat-lifecycle-support-2.5.0_RELEASE.jar (found in cache) -----> Downloading Tomcat Logging Support 2.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-logging- support/tomcat-logging-support-2.5.0_RELEASE.jar (found in cache) -----> Downloading Tomcat Access Logging Support 2.5.0_RELEASE from https://java-buildpack.cloudfoundry.org/tomcat-access- logging-support/tomcat-access-logging-support-2.5.0_RELEASE.jar (found in cache) Exit status 0 Staging complete
in org amayr / space dev as admin... OK requested state: started instances: 1/1 usage: 512M x 1 instances urls: spring-music-devone.apps.pcfeu.dev.dynatracelabs.com last uploaded: Wed May 31 08:36:58 UTC 2017 stack: cflinuxfs2 buildpack: container-certificate-trust-store=2.1.0_RELEASE java-buildpack=v3.16-offline-https://github.com/cloudfoundry/java- buildpack.git#2110750 open-jdk-like-jre=1.8.0_131 open-jdk-like-memory-calculator=2.0.2_RELEASE spring-auto- reconfiguration=1.10.0_RELEASE... state since cpu memory disk details #0 running 2017-05-31 10:38:05 AM 87.7% 278.3M of 512M 155.4M of 256M
as attached resources" (12-factor app) cf bind-service APP_NAME SERVICE_INSTANCE § Service credentials are being exposed via environment variables in runtime container § Services are available via marketplace
-i 2 Scaling app spring-music in org amayr / space dev as admin... OK $ cf app spring-music Showing health and status for app spring-music in org amayr / space dev as admin... name: spring-music requested state: started instances: 2/2 usage: 512M x 2 instances routes: spring-music-devone.apps.pcfeu.dev.dynatracelabs.com last uploaded: Wed 31 May 10:36:58 CEST 2017 stack: cflinuxfs2 buildpack: container-certificate-trust-store=2.1.0_RELEASE java-buildpack=v3.16-offline- https://github.com/cloudfoundry/java-buildpack.git#2110750 open-jdk-like-jre=1.8.0_131 open-jdk-like-memory-calculator=2.0.2_RELEASE spring-auto- reconfiguration=1.10.0_RELEASE... state since cpu memory disk details #0 running 2017-05-31T08:38:05Z 0.3% 332.1M of 512M 155.4M of 256M #1 running 2017-05-31T10:08:08Z 0.4% 319.9M of 512M 155.4M of 256M
runC – the CLI for spawning & running containers § Built on libcontainer from Docker Here is where the containers live Why? Runtime-isolation on shared compute resources