Piped development
This page describes where to find piped source code and how to run it locally for debugging.
Source code structure
- pkg/app/piped: contains source code for only
piped
. - cmd/piped: entrypoint for
piped
binary. - pkg: contains shared source code for all components of both
piped
andcontrol-plane
.
How to run it locally
-
Prepare the piped configuration file
piped-config.yaml
-
Ensure that your
kube-context
is connecting to the right kubernetes cluster -
Run the following command to start running
piped
bazelisk run --run_under="cd $PWD && " //cmd/piped:piped -- piped \
--tools-dir=/tmp/piped-bin \
--config-file=piped-config.yaml
How to run it locally as docker container
# Compile the current source code to build a new Docker image
# and then load it into the local docker client as bazel/cmd/piped:image.
make load-piped-image
docker run bazel/cmd/piped:image --help
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.
Last modified March 18, 2022: Release v0.27.0 (#3417) (8c3c92da)