Hướng dẫn cách deploy maven project local năm 2024

Spring Boot’s flexible packaging options provide a great deal of choice when it comes to deploying your application. You can deploy Spring Boot applications to a variety of cloud platforms, to virtual/real machines, or make them fully executable for Unix systems.

This section covers some of the more common deployment scenarios.

1. Deploying to the Cloud

Spring Boot’s executable jars are ready-made for most popular cloud PaaS (Platform-as-a-Service) providers. These providers tend to require that you “bring your own container”. They manage application processes (not Java applications specifically), so they need an intermediary layer that adapts your application to the cloud’s notion of a running process.

Two popular cloud providers, Heroku and Cloud Foundry, employ a “buildpack” approach. The buildpack wraps your deployed code in whatever is needed to start your application. It might be a JDK and a call to

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

6, an embedded web server, or a full-fledged application server. A buildpack is pluggable, but ideally you should be able to get by with as few customizations to it as possible. This reduces the footprint of functionality that is not under your control. It minimizes divergence between development and production environments.

Ideally, your application, like a Spring Boot executable jar, has everything that it needs to run packaged within it.

In this section, we look at what it takes to get the in the “Getting Started” section up and running in the Cloud.

1.1. Cloud Foundry

Cloud Foundry provides default buildpacks that come into play if no other buildpack is specified. The Cloud Foundry Java buildpack has excellent support for Spring applications, including Spring Boot. You can deploy stand-alone executable jar applications as well as traditional

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

7 packaged applications.

Once you have built your application (by using, for example,

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

  1. and have installed the

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

9 command line tool, deploy your application by using the

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@Component
public class MyBean implements EnvironmentAware {
    private String instanceId;
    @Override
    public void setEnvironment(Environment environment) {
        this.instanceId = environment.getProperty("vcap.application.instance_id");
    }
    // ...
}

0 command, substituting the path to your compiled

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@Component
public class MyBean implements EnvironmentAware {
    private String instanceId;
    @Override
    public void setEnvironment(Environment environment) {
        this.instanceId = environment.getProperty("vcap.application.instance_id");
    }
    // ...
}

1. Be sure to have before pushing an application. The following line shows using the

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@Component
public class MyBean implements EnvironmentAware {
    private String instanceId;
    @Override
    public void setEnvironment(Environment environment) {
        this.instanceId = environment.getProperty("vcap.application.instance_id");
    }
    // ...
}

0 command to deploy an application:

$ cf push acloudyspringtime -p target/demo-0.0.1-SNAPSHOT.jar

In the preceding example, we substitute

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@Component
public class MyBean implements EnvironmentAware {
    private String instanceId;
    @Override
    public void setEnvironment(Environment environment) {
        this.instanceId = environment.getProperty("vcap.application.instance_id");
    }
    // ...
}

4 for whatever value you give

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

9 as the name of your application.

See the for more options. If there is a Cloud Foundry

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@Component
public class MyBean implements EnvironmentAware {
    private String instanceId;
    @Override
    public void setEnvironment(Environment environment) {
        this.instanceId = environment.getProperty("vcap.application.instance_id");
    }
    // ...
}

7 file present in the same directory, it is considered.

At this point,

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

9 starts uploading your application, producing output similar to the following example:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

Congratulations! The application is now live!

Once your application is live, you can verify the status of the deployed application by using the

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@Component
public class MyBean implements EnvironmentAware {
    private String instanceId;
    @Override
    public void setEnvironment(Environment environment) {
        this.instanceId = environment.getProperty("vcap.application.instance_id");
    }
    // ...
}

9 command, as shown in the following example:

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

Once Cloud Foundry acknowledges that your application has been deployed, you should be able to find the application at the URI given. In the preceding example, you could find it at

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

0.

1.1.1. Binding to Services

By default, metadata about the running application as well as service connection information is exposed to the application as environment variables (for example:

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

1). This architecture decision is due to Cloud Foundry’s polyglot (any language and platform can be supported as a buildpack) nature. Process-scoped environment variables are language agnostic.

Environment variables do not always make for the easiest API, so Spring Boot automatically extracts them and flattens the data into properties that can be accessed through Spring’s

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

2 abstraction, as shown in the following example:

Java

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@Component
public class MyBean implements EnvironmentAware {
    private String instanceId;
    @Override
    public void setEnvironment(Environment environment) {
        this.instanceId = environment.getProperty("vcap.application.instance_id");
    }
    // ...
}

Kotlin

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

All Cloud Foundry properties are prefixed with

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

3. You can use

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

3 properties to access application information (such as the public URL of the application) and service information (such as database credentials). See the

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

5 Javadoc for complete details.

The Java CFEnv project is a better fit for tasks such as configuring a DataSource.

1.2. Kubernetes

Spring Boot auto-detects Kubernetes deployment environments by checking the environment for

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

6 and

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

7 variables. You can override this detection with the

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

8 configuration property.

1.2.1. Kubernetes Container Lifecycle

When Kubernetes deletes an application instance, the shutdown process involves several subsystems concurrently: shutdown hooks, unregistering the service, removing the instance from the load-balancer…​ Because this shutdown processing happens in parallel (and due to the nature of distributed systems), there is a window during which traffic can be routed to a pod that has also begun its shutdown processing.

You can configure a sleep execution in a preStop handler to avoid requests being routed to a pod that has already begun shutting down. This sleep should be long enough for new requests to stop being routed to the pod and its duration will vary from deployment to deployment. The preStop handler can be configured by using the PodSpec in the pod’s configuration file as follows:

spec:
  containers:
  • name: "example-container" image: "example-image" lifecycle: preStop: exec: command: ["sh", "-c", "sleep 10"] `
Once the pre-stop hook has completed, SIGTERM will be sent to the container and will begin, allowing any remaining in-flight requests to complete. When Kubernetes sends a SIGTERM signal to the pod, it waits for a specified time called the termination grace period (the default for which is 30 seconds). If the containers are still running after the grace period, they are sent the SIGKILL signal and forcibly removed. If the pod takes longer than 30 seconds to shut down, which could be because you have increased
import org.springframework.context.EnvironmentAware import org.springframework.core.env.Environment import org.springframework.stereotype.Component @Component class MyBean : EnvironmentAware {
private var instanceId: String? = null
override fun setEnvironment(environment: Environment) {
    instanceId = environment.getProperty("vcap.application.instance_id")
}
// ...
}

9, make sure to increase the termination grace period by setting the 
spec: containers:

  • name: "example-container"
    image: "example-image"
    lifecycle:
      preStop:
        exec:
          command: ["sh", "-c", "sleep 10"]
    
    `

0 option in the Pod YAML.

1.3. Heroku

Heroku is another popular PaaS platform. To customize Heroku builds, you provide a

spec:
  containers:
  • name: "example-container" image: "example-image" lifecycle: preStop: exec: command: ["sh", "-c", "sleep 10"] `
1, which provides the incantation required to deploy an application. Heroku assigns a
spec: containers:

  • name: "example-container"
    image: "example-image"
    lifecycle:
      preStop:
        exec:
          command: ["sh", "-c", "sleep 10"]
    
    `

2 for the Java application to use and then ensures that routing to the external URI works.

You must configure your application to listen on the correct port. The following example shows the

spec:
  containers:
  • name: "example-container" image: "example-image" lifecycle: preStop: exec: command: ["sh", "-c", "sleep 10"] `
1 for our starter REST application: web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar Spring Boot makes
spec: containers:

  • name: "example-container"
    image: "example-image"
    lifecycle:
      preStop:
        exec:
          command: ["sh", "-c", "sleep 10"]
    
    `

4 arguments available as properties accessible from a Spring

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

2 instance. The

spec:
  containers:
  • name: "example-container" image: "example-image" lifecycle: preStop: exec: command: ["sh", "-c", "sleep 10"] `
6 configuration property is fed to the embedded Tomcat, Jetty, or Undertow instance, which then uses the port when it starts up. The
spec: containers:

  • name: "example-container"
    image: "example-image"
    lifecycle:
      preStop:
        exec:
          command: ["sh", "-c", "sleep 10"]
    
    `

7 environment variable is assigned to us by the Heroku PaaS.

This should be everything you need. The most common deployment workflow for Heroku deployments is to

spec:
  containers:
  • name: "example-container" image: "example-image" lifecycle: preStop: exec: command: ["sh", "-c", "sleep 10"] `
8 the code to production, as shown in the following example: Which will result in the following: Initializing repository, **done**. Counting objects: 95, **done**. Delta compression using up to 8 threads. Compressing objects: 100% (78/78), **done**. Writing objects: 100% (95/95), 8.66 MiB | 606.00 KiB/s, **done**. Total 95 (delta 31), reused 0 (delta 0) -----> Java app detected -----> Installing OpenJDK... **done** -----> Installing Maven... **done** -----> Installing settings.xml... **done** -----> Executing: mvn -B -DskipTests=true clean install [INFO] Scanning for projects... Downloading: https://repo.spring.io/... Downloaded: https://repo.spring.io/... (818 B at 1.8 KB/sec) .... Downloaded: https://s3pository.heroku.com/jvm/... (152 KB at 595.3 KB/sec) [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/target/... [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/pom.xml ... [INFO] ------------------------------------------------------------------------ [INFO] **BUILD SUCCESS** [INFO] ------------------------------------------------------------------------ [INFO] Total time: 59.358s [INFO] Finished at: Fri Mar 07 07:28:25 UTC 2014 [INFO] Final Memory: 20M/493M [INFO] ------------------------------------------------------------------------ -----> Discovering process types Procfile declares types -> **web** -----> Compressing... **done**, 70.4MB -----> Launching... **done**, v6 https://agile-sierra-1405.herokuapp.com/ **deployed to Heroku** To [[email protected]](https://docs.spring.io/cdn-cgi/l/email-protection):agile-sierra-1405.git
  • [new branch] main -> main
### 1.5\. Amazon Web Services (AWS) Amazon Web Services offers multiple ways to install Spring Boot-based applications, either as traditional web applications (war) or as executable jar files with an embedded web server. The options include:
  • AWS Elastic Beanstalk
  • AWS Code Deploy
  • AWS OPS Works
  • AWS Cloud Formation
  • AWS Container Registry
Each has different features and pricing models. In this document, we describe to approach using AWS Elastic Beanstalk. #### 1.5.1\. AWS Elastic Beanstalk As described in the official Elastic Beanstalk Java guide, there are two main options to deploy a Java application. You can either use the “Tomcat Platform” or the “Java SE platform”. ##### Using the Tomcat Platform This option applies to Spring Boot projects that produce a war file. No special configuration is required. You need only follow the official guide. ##### Using the Java SE Platform This option applies to Spring Boot projects that produce a jar file and run an embedded web container. Elastic Beanstalk environments run an nginx instance on port 80 to proxy the actual application, running on port 5000\. To configure it, add the following line to your
spec: containers:

  • name: "example-container"
    image: "example-image"
    lifecycle:
      preStop:
        exec:
          command: ["sh", "-c", "sleep 10"]
    
    `

9 file:

Upload binaries instead of sources

By default, Elastic Beanstalk uploads sources and compiles them in AWS. However, it is best to upload the binaries instead. To do so, add lines similar to the following to your

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

0 file:

deploy:
    artifact: target/demo-0.0.1-SNAPSHOT.jar

Reduce costs by setting the environment type

By default an Elastic Beanstalk environment is load balanced. The load balancer has a significant cost. To avoid that cost, set the environment type to “Single instance”, as described in . You can also create single instance environments by using the CLI and the following command:

1.5.2. Summary

This is one of the easiest ways to get to AWS, but there are more things to cover, such as how to integrate Elastic Beanstalk into any CI / CD tool, use the Elastic Beanstalk Maven plugin instead of the CLI, and others. There is a blog post covering these topics more in detail.

1.6. CloudCaptain and Amazon Web Services

CloudCaptain works by turning your Spring Boot executable jar or war into a minimal VM image that can be deployed unchanged either on VirtualBox or on AWS. CloudCaptain comes with deep integration for Spring Boot and uses the information from your Spring Boot configuration file to automatically configure ports and health check URLs. CloudCaptain leverages this information both for the images it produces as well as for all the resources it provisions (instances, security groups, elastic load balancers, and so on).

Once you have created a CloudCaptain account, connected it to your AWS account, installed the latest version of the CloudCaptain Client, and ensured that the application has been built by Maven or Gradle (by using, for example,

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

8), you can deploy your Spring Boot application to AWS with a command similar to the following:

$ boxfuse run myapp-1.0.jar -env=prod

By default, CloudCaptain activates a Spring profile named

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

2 on startup. If your executable jar or war contains an file, CloudCaptain bases its configuration on the properties it contains.

At this point, CloudCaptain creates an image for your application, uploads it, and configures and starts the necessary resources on AWS, resulting in output similar to the following example:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

0

Your application should now be up and running on AWS.

1.7. Azure

1.8. Google Cloud

Google Cloud has several options that can be used to launch Spring Boot applications. The easiest to get started with is probably App Engine, but you could also find ways to run Spring Boot in a container with Container Engine or on a virtual machine with Compute Engine.

To deploy your first app to App Engine standard environment, follow .

Alternatively, App Engine Flex requires you to create an

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

4 file to describe the resources your app requires. Normally, you put this file in

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

5, and it should resemble the following file:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

1

You can deploy the app (for example, with a Maven plugin) by adding the project ID to the build configuration, as shown in the following example:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

2

Then deploy with

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

6 (you need to authenticate first, otherwise the build fails).

2. Installing Spring Boot Applications

In addition to running Spring Boot applications by using

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

7 directly, it is also possible to run them as

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

8,

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 or Windows services.

2.1. Installation as a systemd Service

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

8 is the successor of the System V init system and is now being used by many modern Linux distributions. Spring Boot applications can be launched by using

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

8 ‘service’ scripts.

Assuming that you have a Spring Boot application packaged as an uber jar in

Initializing repository, done. Counting objects: 95, done. Delta compression using up to 8 threads. Compressing objects: 100% (78/78), done. Writing objects: 100% (95/95), 8.66 MiB | 606.00 KiB/s, done. Total 95 (delta 31), reused 0 (delta 0) -> Java app detected -> Installing OpenJDK... done -> Installing Maven... done -> Installing settings.xml... done -> Executing: mvn -B -DskipTests=true clean install

   [INFO] Scanning for projects...
   Downloading: https://repo.spring.io/...
   Downloaded: https://repo.spring.io/... (818 B at 1.8 KB/sec)
    ....
   Downloaded: https://s3pository.heroku.com/jvm/... (152 KB at 595.3 KB/sec)
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/target/...
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/pom.xml ...
   [INFO] ------------------------------------------------------------------------
   [INFO] **BUILD SUCCESS**
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 59.358s
   [INFO] Finished at: Fri Mar 07 07:28:25 UTC 2014
   [INFO] Final Memory: 20M/493M
   [INFO] ------------------------------------------------------------------------
-> Discovering process types
   Procfile declares types -> **web**
-> Compressing... done, 70.4MB -> Launching... done, v6
   https://agile-sierra-1405.herokuapp.com/ **deployed to Heroku**
To [email protected]:agile-sierra-1405.git

  • [new branch] main -> main

2, to install it as a

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

8 service, create a script named

Initializing repository, done. Counting objects: 95, done. Delta compression using up to 8 threads. Compressing objects: 100% (78/78), done. Writing objects: 100% (95/95), 8.66 MiB | 606.00 KiB/s, done. Total 95 (delta 31), reused 0 (delta 0) -> Java app detected -> Installing OpenJDK... done -> Installing Maven... done -> Installing settings.xml... done -> Executing: mvn -B -DskipTests=true clean install

   [INFO] Scanning for projects...
   Downloading: https://repo.spring.io/...
   Downloaded: https://repo.spring.io/... (818 B at 1.8 KB/sec)
    ....
   Downloaded: https://s3pository.heroku.com/jvm/... (152 KB at 595.3 KB/sec)
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/target/...
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/pom.xml ...
   [INFO] ------------------------------------------------------------------------
   [INFO] **BUILD SUCCESS**
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 59.358s
   [INFO] Finished at: Fri Mar 07 07:28:25 UTC 2014
   [INFO] Final Memory: 20M/493M
   [INFO] ------------------------------------------------------------------------
-> Discovering process types
   Procfile declares types -> **web**
-> Compressing... done, 70.4MB -> Launching... done, v6
   https://agile-sierra-1405.herokuapp.com/ **deployed to Heroku**
To [email protected]:agile-sierra-1405.git

  • [new branch] main -> main

4 and place it in

Initializing repository, done. Counting objects: 95, done. Delta compression using up to 8 threads. Compressing objects: 100% (78/78), done. Writing objects: 100% (95/95), 8.66 MiB | 606.00 KiB/s, done. Total 95 (delta 31), reused 0 (delta 0) -> Java app detected -> Installing OpenJDK... done -> Installing Maven... done -> Installing settings.xml... done -> Executing: mvn -B -DskipTests=true clean install

   [INFO] Scanning for projects...
   Downloading: https://repo.spring.io/...
   Downloaded: https://repo.spring.io/... (818 B at 1.8 KB/sec)
    ....
   Downloaded: https://s3pository.heroku.com/jvm/... (152 KB at 595.3 KB/sec)
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/target/...
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/pom.xml ...
   [INFO] ------------------------------------------------------------------------
   [INFO] **BUILD SUCCESS**
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 59.358s
   [INFO] Finished at: Fri Mar 07 07:28:25 UTC 2014
   [INFO] Final Memory: 20M/493M
   [INFO] ------------------------------------------------------------------------
-> Discovering process types
   Procfile declares types -> **web**
-> Compressing... done, 70.4MB -> Launching... done, v6
   https://agile-sierra-1405.herokuapp.com/ **deployed to Heroku**
To [email protected]:agile-sierra-1405.git

  • [new branch] main -> main

5 directory. The following script offers an example:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

3

Remember to change the

Initializing repository, done. Counting objects: 95, done. Delta compression using up to 8 threads. Compressing objects: 100% (78/78), done. Writing objects: 100% (95/95), 8.66 MiB | 606.00 KiB/s, done. Total 95 (delta 31), reused 0 (delta 0) -> Java app detected -> Installing OpenJDK... done -> Installing Maven... done -> Installing settings.xml... done -> Executing: mvn -B -DskipTests=true clean install

   [INFO] Scanning for projects...
   Downloading: https://repo.spring.io/...
   Downloaded: https://repo.spring.io/... (818 B at 1.8 KB/sec)
    ....
   Downloaded: https://s3pository.heroku.com/jvm/... (152 KB at 595.3 KB/sec)
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/target/...
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/pom.xml ...
   [INFO] ------------------------------------------------------------------------
   [INFO] **BUILD SUCCESS**
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 59.358s
   [INFO] Finished at: Fri Mar 07 07:28:25 UTC 2014
   [INFO] Final Memory: 20M/493M
   [INFO] ------------------------------------------------------------------------
-> Discovering process types
   Procfile declares types -> **web**
-> Compressing... done, 70.4MB -> Launching... done, v6
   https://agile-sierra-1405.herokuapp.com/ **deployed to Heroku**
To [email protected]:agile-sierra-1405.git

  • [new branch] main -> main

6,

Initializing repository, done. Counting objects: 95, done. Delta compression using up to 8 threads. Compressing objects: 100% (78/78), done. Writing objects: 100% (95/95), 8.66 MiB | 606.00 KiB/s, done. Total 95 (delta 31), reused 0 (delta 0) -> Java app detected -> Installing OpenJDK... done -> Installing Maven... done -> Installing settings.xml... done -> Executing: mvn -B -DskipTests=true clean install

   [INFO] Scanning for projects...
   Downloading: https://repo.spring.io/...
   Downloaded: https://repo.spring.io/... (818 B at 1.8 KB/sec)
    ....
   Downloaded: https://s3pository.heroku.com/jvm/... (152 KB at 595.3 KB/sec)
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/target/...
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/pom.xml ...
   [INFO] ------------------------------------------------------------------------
   [INFO] **BUILD SUCCESS**
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 59.358s
   [INFO] Finished at: Fri Mar 07 07:28:25 UTC 2014
   [INFO] Final Memory: 20M/493M
   [INFO] ------------------------------------------------------------------------
-> Discovering process types
   Procfile declares types -> **web**
-> Compressing... done, 70.4MB -> Launching... done, v6
   https://agile-sierra-1405.herokuapp.com/ **deployed to Heroku**
To [email protected]:agile-sierra-1405.git

  • [new branch] main -> main

7,

Initializing repository, done. Counting objects: 95, done. Delta compression using up to 8 threads. Compressing objects: 100% (78/78), done. Writing objects: 100% (95/95), 8.66 MiB | 606.00 KiB/s, done. Total 95 (delta 31), reused 0 (delta 0) -> Java app detected -> Installing OpenJDK... done -> Installing Maven... done -> Installing settings.xml... done -> Executing: mvn -B -DskipTests=true clean install

   [INFO] Scanning for projects...
   Downloading: https://repo.spring.io/...
   Downloaded: https://repo.spring.io/... (818 B at 1.8 KB/sec)
    ....
   Downloaded: https://s3pository.heroku.com/jvm/... (152 KB at 595.3 KB/sec)
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/target/...
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/pom.xml ...
   [INFO] ------------------------------------------------------------------------
   [INFO] **BUILD SUCCESS**
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 59.358s
   [INFO] Finished at: Fri Mar 07 07:28:25 UTC 2014
   [INFO] Final Memory: 20M/493M
   [INFO] ------------------------------------------------------------------------
-> Discovering process types
   Procfile declares types -> **web**
-> Compressing... done, 70.4MB -> Launching... done, v6
   https://agile-sierra-1405.herokuapp.com/ **deployed to Heroku**
To [email protected]:agile-sierra-1405.git

  • [new branch] main -> main

8,

import org.springframework.context.EnvironmentAware
import org.springframework.core.env.Environment
import org.springframework.stereotype.Component
@Component
class MyBean : EnvironmentAware {
    private var instanceId: String? = null
    override fun setEnvironment(environment: Environment) {
        instanceId = environment.getProperty("vcap.application.instance_id")
    }
    // ...
}

2 and

deploy:
    artifact: target/demo-0.0.1-SNAPSHOT.jar

0 fields for your application.

The

deploy:
    artifact: target/demo-0.0.1-SNAPSHOT.jar

0 field does not declare the script action command, which means that the

deploy:
    artifact: target/demo-0.0.1-SNAPSHOT.jar

2 command is used by default.

The user that runs the application, the PID file, and the console log file are managed by

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

8 itself and therefore must be configured by using appropriate fields in the ‘service’ script. Consult the service unit configuration man page for more details.

To flag the application to start automatically on system boot, use the following command:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

4

Run

deploy:
    artifact: target/demo-0.0.1-SNAPSHOT.jar

4 for more details.

2.2. Installation as an init.d Service (System V)

To use your application as

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 service, configure its build to produce a .

Fully executable jars work by embedding an extra script at the front of the file. Currently, some tools do not accept this format, so you may not always be able to use this technique. For example,

deploy:
    artifact: target/demo-0.0.1-SNAPSHOT.jar

6 may silently fail to extract a jar or war that has been made fully executable. It is recommended that you make your jar or war fully executable only if you intend to execute it directly, rather than running it with

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

7 or deploying it to a servlet container.

A zip64-format jar file cannot be made fully executable. Attempting to do so will result in a jar file that is reported as corrupt when executed directly or with

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

7. A standard-format jar file that contains one or more zip64-format nested jars can be fully executable.

To create a ‘fully executable’ jar with Maven, use the following plugin configuration:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

5

The following example shows the equivalent Gradle configuration:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

6

It can then be symlinked to

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 to support the standard

$ boxfuse run myapp-1.0.jar -env=prod

0,

$ boxfuse run myapp-1.0.jar -env=prod

1,

$ boxfuse run myapp-1.0.jar -env=prod

2, and

$ boxfuse run myapp-1.0.jar -env=prod

3 commands.

The default launch script that is added to a fully executable jar supports most Linux distributions and is tested on CentOS and Ubuntu. Other platforms, such as OS X and FreeBSD, require the use of a custom script. The default scripts supports the following features:

  • Starts the services as the user that owns the jar file
  • Tracks the application’s PID by using

    $ boxfuse run myapp-1.0.jar -env=prod

    4
  • Writes console logs to

    $ boxfuse run myapp-1.0.jar -env=prod

    5

Assuming that you have a Spring Boot application installed in

Initializing repository, done. Counting objects: 95, done. Delta compression using up to 8 threads. Compressing objects: 100% (78/78), done. Writing objects: 100% (95/95), 8.66 MiB | 606.00 KiB/s, done. Total 95 (delta 31), reused 0 (delta 0) -> Java app detected -> Installing OpenJDK... done -> Installing Maven... done -> Installing settings.xml... done -> Executing: mvn -B -DskipTests=true clean install

   [INFO] Scanning for projects...
   Downloading: https://repo.spring.io/...
   Downloaded: https://repo.spring.io/... (818 B at 1.8 KB/sec)
    ....
   Downloaded: https://s3pository.heroku.com/jvm/... (152 KB at 595.3 KB/sec)
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/target/...
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/pom.xml ...
   [INFO] ------------------------------------------------------------------------
   [INFO] **BUILD SUCCESS**
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 59.358s
   [INFO] Finished at: Fri Mar 07 07:28:25 UTC 2014
   [INFO] Final Memory: 20M/493M
   [INFO] ------------------------------------------------------------------------
-> Discovering process types
   Procfile declares types -> **web**
-> Compressing... done, 70.4MB -> Launching... done, v6
   https://agile-sierra-1405.herokuapp.com/ **deployed to Heroku**
To [email protected]:agile-sierra-1405.git

  • [new branch] main -> main

2, to install a Spring Boot application as an

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 service, create a symlink, as follows:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

7

Once installed, you can start and stop the service in the usual way. For example, on a Debian-based system, you could start it with the following command:

If your application fails to start, check the log file written to

$ boxfuse run myapp-1.0.jar -env=prod

5 for errors.

You can also flag the application to start automatically by using your standard operating system tools. For example, on Debian, you could use the following command:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

8

2.2.1. Securing an init.d Service

The following is a set of guidelines on how to secure a Spring Boot application that runs as an init.d service. It is not intended to be an exhaustive list of everything that should be done to harden an application and the environment in which it runs.

When executed as root, as is the case when root is being used to start an init.d service, the default executable script runs the application as the user specified in the

$ boxfuse run myapp-1.0.jar -env=prod

9 environment variable. When the environment variable is not set, the user who owns the jar file is used instead. You should never run a Spring Boot application as

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

00, so

$ boxfuse run myapp-1.0.jar -env=prod

9 should never be root and your application’s jar file should never be owned by root. Instead, create a specific user to run your application and set the

$ boxfuse run myapp-1.0.jar -env=prod

9 environment variable or use

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

03 to make it the owner of the jar file, as shown in the following example:

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

9

In this case, the default executable script runs the application as the

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

04 user.

To reduce the chances of the application’s user account being compromised, you should consider preventing it from using a login shell. For example, you can set the account’s shell to

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

05.

You should also take steps to prevent the modification of your application’s jar file. Firstly, configure its permissions so that it cannot be written and can only be read or executed by its owner, as shown in the following example:

Second, you should also take steps to limit the damage if your application or the account that is running it is compromised. If an attacker does gain access, they could make the jar file writable and change its contents. One way to protect against this is to make it immutable by using

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

06, as shown in the following example:

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

0

This will prevent any user, including root, from modifying the jar.

If root is used to control the application’s service and you to customize its startup, the

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

07 file is read and evaluated by the root user. It should be secured accordingly. Use

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

09 so that the file can only be read by the owner and use

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

03 to make root the owner, as shown in the following example:

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

1

2.2.2. Customizing the Startup Script

The default embedded startup script written by the Maven or Gradle plugin can be customized in a number of ways. For most people, using the default script along with a few customizations is usually enough. If you find you cannot customize something that you need to, use the

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

11 option to write your own file entirely.

Customizing the Start Script When It Is Written

It often makes sense to customize elements of the start script as it is written into the jar file. For example, init.d scripts can provide a “description”. Since you know the description up front (and it need not change), you may as well provide it when the jar is generated.

The following property substitutions are supported with the default script:

Name Description Gradle default Maven default

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

12

The script mode.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

13

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

13

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

15

The

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

16 section of “INIT INFO”

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

17

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

18

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

19

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

20 section of “INIT INFO”.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

21

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

21

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

23

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

24 section of “INIT INFO”.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

21

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

21

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

27

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

28 section of “INIT INFO”.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

29

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

29

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

31

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

32 section of “INIT INFO”.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

33

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

33

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

35

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

36 section of “INIT INFO”.

Single-line version of

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

37 (falling back to

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

17)

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

39

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

40

Initializing repository, done. Counting objects: 95, done. Delta compression using up to 8 threads. Compressing objects: 100% (78/78), done. Writing objects: 100% (95/95), 8.66 MiB | 606.00 KiB/s, done. Total 95 (delta 31), reused 0 (delta 0) -> Java app detected -> Installing OpenJDK... done -> Installing Maven... done -> Installing settings.xml... done -> Executing: mvn -B -DskipTests=true clean install

   [INFO] Scanning for projects...
   Downloading: https://repo.spring.io/...
   Downloaded: https://repo.spring.io/... (818 B at 1.8 KB/sec)
    ....
   Downloaded: https://s3pository.heroku.com/jvm/... (152 KB at 595.3 KB/sec)
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/target/...
   [INFO] Installing /tmp/build_0c35a5d2-a067-4abc-a232-14b1fb7a8229/pom.xml ...
   [INFO] ------------------------------------------------------------------------
   [INFO] **BUILD SUCCESS**
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time: 59.358s
   [INFO] Finished at: Fri Mar 07 07:28:25 UTC 2014
   [INFO] Final Memory: 20M/493M
   [INFO] ------------------------------------------------------------------------
-> Discovering process types
   Procfile declares types -> **web**
-> Compressing... done, 70.4MB -> Launching... done, v6
   https://agile-sierra-1405.herokuapp.com/ **deployed to Heroku**
To [email protected]:agile-sierra-1405.git

  • [new branch] main -> main

6 section of “INIT INFO”.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

37 (falling back to

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

17)

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

37 (falling back to

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

39)

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

46

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

47 section of “INIT INFO”

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

48

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

48

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

50

The default value for

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

51

Folder containing the jar

Folder containing the jar

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

52

Reference to a file script that should be inlined in the default launch script. This can be used to set environmental variables such as

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

53 before any external config files are loaded

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

54

Default value for

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

55. Only valid for an

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 service

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

57

Default value for

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

58. Only valid for an

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 service

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

60

Default value for

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

61. Only valid for an

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 service

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

63

Default value for the name of the PID file in

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

61. Only valid for an

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 service

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

66

Whether the

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

67 command, when it is available, should be used to control the process

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

68

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

68

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

70

Default value for

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

71 in seconds. Only valid for an

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 service

60

60

Customizing a Script When It Runs

For items of the script that need to be customized after the jar has been written, you can use environment variables or a .

The following environment properties are supported with the default script:

Variable Description

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

73

The “mode” of operation. The default depends on the way the jar was built but is usually

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

13 (meaning it tries to guess if it is an init script by checking if it is a symlink in a directory called

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9). You can explicitly set it to

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

76 so that the

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

77 commands work or to

deploy:
    artifact: target/demo-0.0.1-SNAPSHOT.jar

2 if you want to run the script in the foreground.

$ boxfuse run myapp-1.0.jar -env=prod

9

The user that will be used to run the application. When not set, the user that owns the jar file will be used.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

80

Whether the

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

67 command, when it is available, should be used to control the process. Defaults to

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

68.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

61

The root name of the pid folder (

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

84 by default).

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

55

The name of the folder in which to put log files (

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

86 by default).

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

51

The name of the folder from which to read .conf files (same folder as jar-file by default).

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

58

The name of the log file in the

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

55 (

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

90 by default).

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

91

The name of the app. If the jar is run from a symlink, the script guesses the app name. If it is not a symlink or you want to explicitly set the app name, this can be useful.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

92

The arguments to pass to the program (the Spring Boot app).

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

93

The location of the

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

6 executable is discovered by using the

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

95 by default, but you can set it explicitly if there is an executable file at

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

96.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

53

Options that are passed to the JVM when it is launched.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

98

The explicit location of the jar file, in case the script is being used to launch a jar that it is not actually embedded.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

99

If not empty, sets the

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

00 flag on the shell process, allowing you to see the logic in the script.

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

71

The time in seconds to wait when stopping the application before forcing a shutdown (

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

02 by default).

The

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

61,

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

55, and

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

58 variables are only valid for an

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

9 service. For

web: java -Dserver.port=$PORT -jar target/demo-0.0.1-SNAPSHOT.jar

8, the equivalent customizations are made by using the ‘service’ script. See the service unit configuration man page for more details.

Using a Conf Gile

With the exception of

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

98 and

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

91, the settings listed in the preceding section can be configured by using a

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

07 file. The file is expected to be next to the jar file and have the same name but suffixed with

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

07 rather than

import org.springframework.context.EnvironmentAware;
import org.springframework.core.env.Environment;
import org.springframework.stereotype.Component;
@Component
public class MyBean implements EnvironmentAware {
    private String instanceId;
    @Override
    public void setEnvironment(Environment environment) {
        this.instanceId = environment.getProperty("vcap.application.instance_id");
    }
    // ...
}

1. For example, a jar named

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

13 uses the configuration file named

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

14, as shown in the following example:

myapp.conf

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

2

If you do not like having the config file next to the jar file, you can set a

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

51 environment variable to customize the location of the config file.

2.3. Microsoft Windows Services

A Spring Boot application can be started as a Windows service by using

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

16.

A (separately maintained sample) describes step-by-step how you can create a Windows service for your Spring Boot application.

3. Efficient deployments

3.1. Unpacking the Executable JAR

If you are running your application from a container, you can use an executable jar, but it is also often an advantage to explode it and run it in a different way. Certain PaaS implementations may also choose to unpack archives before they run. For example, Cloud Foundry operates this way. One way to run an unpacked archive is by starting the appropriate launcher, as follows:

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

3

This is actually slightly faster on startup (depending on the size of the jar) than running from an unexploded archive. After startup, you should not expect any differences.

Once you have unpacked the jar file, you can also get an extra boost to startup time by running the app with its "natural" main method instead of the

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

17. For example:

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

4

Using the

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

17 over the application’s main method has the added benefit of a predictable classpath order. The jar contains a

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

19 file which is used by the

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

17 when constructing the classpath.

3.2. Using Ahead-of-time Processing With the JVM

It’s beneficial for the startup time to run your application using the AOT generated initialization code. First, you need to ensure that the jar you are building includes AOT generated code.

For Maven, this means that you should build with

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

21 to activate the

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

22 profile:

For Gradle, you need to ensure that your build includes the

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

23 plugin.

When the JAR has been built, run it with

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

24 system property set to

Uploading acloudyspringtime... OK Preparing to start acloudyspringtime... OK -> Downloaded app package (8.9M) -> Java Buildpack Version: v3.12 (offline) | https://github.com/cloudfoundry/java-buildpack.git

6f25b7e

-> Downloading Open Jdk JRE

   Expanding Open Jdk JRE to .java-buildpack/open_jdk_jre (1.6s)
-> 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 1.0.0_RELEASE from https://java-buildpack.cloudfoundry.org/container-certificate-trust-store/container-certificate-trust-store-1.0.0_RELEASE.jar (found in cache)
   Adding certificates to .java-buildpack/container_certificate_trust_store/truststore.jks (0.6s)
-> 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) Checking status of app 'acloudyspringtime'... 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 (1 running) App started

68. For example:

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

5

Beware that using the ahead-of-time processing has drawbacks. It implies the following restrictions:

  • The classpath is fixed and fully defined at build time
  • The beans defined in your application cannot change at runtime, meaning:
    • The Spring

      $ cf apps Getting applications in ... OK name requested state instances memory disk urls ... acloudyspringtime started 1/1 512M 1G acloudyspringtime.cfapps.io ...

      26 annotation and profile-specific configuration .
    • Properties that change if a bean is created are not supported (for example,

      $ cf apps Getting applications in ... OK name requested state instances memory disk urls ... acloudyspringtime started 1/1 512M 1G acloudyspringtime.cfapps.io ...

      27 and

      $ cf apps Getting applications in ... OK name requested state instances memory disk urls ... acloudyspringtime started 1/1 512M 1G acloudyspringtime.cfapps.io ...

      28 properties).

3.3. Checkpoint and Restore With the JVM

Coordinated Restore at Checkpoint (CRaC) is an OpenJDK project that defines a new Java API to allow you to checkpoint and restore an application on the HotSpot JVM. It is based on CRIU, a project that implements checkpoint/restore functionality on Linux.

The principle is the following: you start your application almost as usual but with a CRaC enabled version of the JDK like Bellsoft Liberica JDK with CRaC or . Then at some point, potentially after some workloads that will warm up your JVM by executing all common code paths, you trigger a checkpoint using an API call, a

$ cf apps
Getting applications in ...
OK
name                 requested state   instances   memory   disk   urls
...
acloudyspringtime    started           1/1         512M     1G     acloudyspringtime.cfapps.io
...

29 command, an HTTP endpoint, or a different mechanism.

A memory representation of the running JVM, including its warmness, is then serialized to disk, allowing a fast restoration at a later point, potentially on another machine with a similar operating system and CPU architecture. The restored process retains all the capabilities of the HotSpot JVM, including further JIT optimizations at runtime.

Based on the foundations provided by Spring Framework, Spring Boot provides support for checkpointing and restoring your application, and manages out-of-the-box the lifecycle of resources such as socket, files and thread pools on a limited scope. Additional lifecycle management is expected for other dependencies and potentially for the application code dealing with such resources.

You can find more details about the two modes supported ("on demand checkpoint/restore of a running application" and "automatic checkpoint/restore at startup"), how to enable checkpoint and restore support and some guidelines in the Spring Framework JVM Checkpoint Restore support documentation.

See the Cloud Foundry, Heroku, OpenShift, and Boxfuse web sites for more information about the kinds of features that a PaaS can offer. These are just four of the most popular Java PaaS providers. Since Spring Boot is so amenable to cloud-based deployment, you can freely consider other providers as well.