deploy-agent v2
Deploy agent helps Tsuru (API) with the tough task of inspecting, building, and pushing Tsuru app images to the container registry.
The current version (v2) does it in a special way which makes Tsuru agnostic of container runtime APIs.
It exposes a well-defined API over a gRPC service that translates all Tsuru operations to Buildkit service - but is not limited to it, e.g. it may be extended to support other build services like Google Cloud Build, kaniko, whatever.
Local Development Setup
To set up your local development environment for deploy-agent, follow these steps:
-
Install Dependencies
- Ensure you have Docker and Docker Compose (or the Docker Compose plugin) installed.
- Install Go (version 1.24 or higher).
- Install
protoc (Protocol Buffers compiler).
-
Prepare Loopback IP
-
Run Tests
-
Cleanup
-
Other Useful Commands
The misc/local-dev.sh script handles loopback IP setup/cleanup and works on both Linux and macOS.