Skip to content

stephanme/cf-hello-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

cf-hello-java

Dependencies

You need maven and a jdk 17 installed.

Build

mvn package

Deploy to Cloud Foundry

cf push

The app gets a random route assigned.

Access Application

ROUTE=$(cf curl "/v3/apps/$(cf app hello-java --guid)/routes" | jq -r .resources[0].url)
curl https://$ROUTE

Run Task

cf run-task hello-java --name my-task
cf run-task hello-java --name my-task --command '.java-buildpack/open_jdk_jre/bin/java -cp ./WEB-INF/classes org.example.Task arg1 arg2'
cf tasks hello-java

cf logs hello-java --recent

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages