A really simple demo application in a number of languages for Pivotal Application Service / Cloud Foundry.
Hello Goose aims to provide a simple example application and manifest for every core buildpack as a test and educational tool for exploring basic CF concepts. It also allows you to see some of the differences between buildpack implementations and the languages used. We still need contributions for some buildpacks!
See the application in action at https://hello-goose.cfapps.io or pick your language of choice and follow the instructions in the README within that directory.
The application will provide a photo of a goose running in 3 container instances. It will also display the instance ID that served your request so that you can see the load balancing working and the container lifecycle when you work with the application.
The cropped goose image has been donated into the public domain by the photographer.
This is a test and education tool. The code in this repo may not be of production quality and you should review it carefully before hosting the application publically.
- Binary: An example using the binary buildpack.
- DotNetCore: A Razor Pages based implementation using Microsoft .Net Core.
- JSP: A simple and arguably retro Java example using Java Servlet Pages.
- Spring Boot: A simple Spring Boot implementation.
- PHP: Probaby the simplest implementation of all.
- Go: Minimal go version with no external dependencies.
- Python: Quick and simple using Flask and a Jinja2 template with the option to vendor dependencies.
- Ruby: Absolutely minimal Sinatra app.
- Staticfile: Use the Staticfile buildpack (a script updates the HTML when the container starts).
- Kubernetes: Examples for deploying Hello Goose to k8s.
N.B. We love pull requests and new language versions. The main rule is that all languages must produce exactly the same output barring necessary changes such as headers.