This SparkJava-based example builds a container image that includes the Stackdriver Debugger Java Agent. This project assumes the resulting image will be run inside Google Cloud Platform.
To build the image:
-
Replace
REPLACE-WITH-YOUR-GCP-PROJECTwith your GCP project inpom.xmlorbuild.gradle. -
Run
mvn packageor./gradlewto build the image.
SparkJava listens on port 4567 by default.