Overview

Skill Level: Beginner

Learn how to run a Spring Cloud Task locally on Cloud Foundry from the command line

Ingredients

Step-by-step

  1. Run your local Cloud Foundry service

    Execute the following commands from the Spring Cloud Task project directory.

    05-step01-0001-2

  2. Push the Spring Cloud Task

    05-step02-0001-2

  3. Verify deployment and run the Spring Cloud Task

    05-step03-0001-2

    NOTE: this is the command to run the task:

    cf run-task MySimpleTask “.java-buildpack/open_jdk_jre/bin/java org.springframework.boot.loader.JarLauncher arg1” -m 256M –name newstask

Join The Discussion