Sample apps demonstrating how to use sidecar processes in Cloud Foundry.
This repository currently contains the following sample apps and sidecars.
You can quickly deploy both apps by targeting your Cloud Foundry api using the cf cli
and running the respective script.
A simple Golang binary that emulates a "configuration server" for the parent app to call out to.
A simple java app that uses the wiremock framework to respond with a stubbed response.
A simple Sinatra app that calls out to the config-server-sidecar
binary and echoes back its response.
Script: push_sample_app_with_sidecar
A simple Spring Boot app that calls out to the config-server-sidecar
binary and echoes back its response.
Note that the manifest reserves some memory for the sidecar - if this is not specified, the Java Buildpack will consume all available memory allocated to the app.
Script: push_java_app_with_binary_sidecar
A simple Spring Boot app that calls out to the wiremock-sidecar
and echoes back its response.
Script: push_java_app_with_wiremock_sidecar