We're excited to announce that our public API for building Docker images from your own code is now generally available to all Depot customers 🎉
The API powers all of our builds via the
depot CLI, and it's now available to all organizations to use in their own applications & services. With it, you can manage namespaces (i.e., projects), launch builds, and get access to our lower-level BuildKit connections for advanced use cases.
Why did we build an API?
Since our launch, many folks have asked us if they can use Depot to build images on behalf of their users. For example, a SaaS service that takes machine learning models and packages them into Docker images to deploy them to Kubernetes clusters. They want the fastest way to build those container images without running all the internal infrastructure to do so.
So, we built an API to make it easy to build Docker images from your code. You can use it to build images for your applications or on behalf of your users.
What can you do with the API?
The gRPC API consists of three primary services:
Namespace: Create, update, and delete namespaces (i.e., projects) in Depot. For folks building images on behalf of their users, you can create a namespace for each user and then launch builds on their behalf. These are isolated from other projects and get their own dedicated cache.
Build: Launch a single image build within a given namespace. You can use the build ID & build token to shell out to
depot buildor get a lower-level BuildKit endpoint.
BuildKit: Get a lower-level BuildKit connection for advanced use cases that don't require the Depot CLI. This allows you to create a build for a given architecture, get the endpoint, and feed it directly into
These three services allow you to build images for your applications or on behalf of your users. You can create and destroy namespaces, launch builds, and run them via the
depot CLI, or get a BuildKit connection to use in your applications with
You can find more details about the API in our overview documentation.
We are excited to see what use cases this unlocks and to iterate on new features & enhancements to our API to make your life easier. If you have any feedback or suggestions, please reach out to us and let us know.