These demo applications are packaged to allow px deploy
to access them. The manifest.json
file describes the demo scenarios.
- For best results when running the continuous profiler, all Java applications should be run with
-XX:+PreserveFramePointer
.
- Add a folder containing the demo yaml and license file.
- Add the demo to the
manifest.json
file. - Test the CLI:
# 1. (Optional) Update the GCS bucket in the `demos/BUILD.bazel` demo_upload step.
# 2. Upload the demo artifacts to the dev bucket:
bazel run //demos:upload_dev_demo
# 3. Test the CLI with the dev artifacts:
bazel run //src/pixie_cli:px demo list -- -artifacts <DEV_ARTIFACTS_URL>
bazel run //src/pixie_cli:px demo deploy <DEMO_NAME> -- -artifacts <DEV_ARTIFACTS_URL>
# 4. After your PR is merged, upload the demo artifacts to the prod bucket:
bazel run //demos:upload_prod_demo
-
Clone
https://github.com/pixie-labs/microservice-kafka
and switch to thepixie
branch. -
(optional) Build the container images & update the individual yaml files.
-
Build a single yaml file for the demo:
kustomize build . > kafka.yaml
- Copy the yaml file to
pixie/demos/kafka
.
Our custom adservice
image includes the -XX:+PreserveFramePointer
Java option. To build our custom adservice
image:
-
Clone
https://github.com/pixie-labs/microservices-demo
and switch to thepixie
branch. -
Run the following commands:
cd src/adservice
docker build -t gcr.io/pixie-prod/demos/microservices-demo-app/adservice:1.0 .
docker push gcr.io/pixie-prod/demos/microservices-demo-app/adservice:1.0