- Docker (https://docs.docker.com/install/)
- Install pack on macOS or see https://buildpacks.io/docs/install-pack/ for alternatives
brew install buildpacks/tap/pack
- Clone the sample repository and go to the application directory
git clone git@github.com:buildpacks/samples.git
cd samples/apps/java-maven
- Build the application
pack build myapp --builder cloudfoundry/cnb:bionic
- Test the application
docker run --rm -p 8080:8080 myapp
- Open localhost:8080 in your favorite browser