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-PROJECT
with your GCP project inpom.xml
orbuild.gradle
. -
Run
mvn package
or./gradlew
to build the image.
SparkJava listens on port 4567 by default.