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:
-
(Optional) Update the GCS bucket in the
demos/BUILD.bazel
demo_upload step. Set the artifacts URL appropriately.export DEV_DEMO_ARTIFACTS_URL=https://storage.googleapis.com/pl-infra-dev-artifacts/dev-demo-apps
-
Upload the demo artifacts to the dev bucket:
bazel run //demos:upload_dev_demo
-
Test the CLI with the dev artifacts:
px demo list --artifacts "${DEV_DEMO_ARTIFACTS_URL}" px demo deploy <DEMO_NAME> --artifacts "${DEV_DEMO_ARTIFACTS_URL}"
-
-
After your PR is merged, upload the demo artifacts to the prod bucket:
bazel run //demos:upload_prod_demo
-
Clone
https://github.com/pixie-io/microservice-kafka
and switch to thepixie
branch. -
(optional) Build the container image & 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
.
-
Clone
https://github.com/pixie-io/finagle-helloworld
-
(optional) Build the container images & update the individual yaml files.
-
Build a single yaml file for the demo:
kustomize . > finagle.yaml
-
Copy the yaml file to
pixie/demos/finagle
.
Our custom adservice
image includes the -XX:+PreserveFramePointer
Java option. To build our custom adservice
image:
-
Clone
https://github.com/pixie-io/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