Bootstrap a Devbox from an Object Artifact
A 6-step recipe with Runloop. We can help you get access.
Recipe · 6 steps
Bootstrap a Devbox from an Object Artifact
with Runloop · Environment Management
Stage an object artifact and pull it into a freshly booted devbox.
- Create the artifact object; it starts in the UPLOADING state.
- Mark the object upload complete so it becomes read-only.
- Generate a presigned download URL for the completed artifact.
- Create the devbox that will host the downloaded artifact.
- Poll until the devbox is running, looping back while it boots.
- Run a command on the devbox that pulls the artifact into the target path using the presigned download URL.
What you'll need to have ready
- apiToken: Runloop API bearer token.
- objectName: The name of the object to create.
- contentType: The content type of the object (one of unspecified, text, binary, gzip, tar, tgz).
- targetPath: Path on the devbox to download the artifact to.
- devboxName: Optional friendly name for the devbox.
For your developer
Arazzo workflow runloop-ai:bootstrap-devbox-from-object, 6 operations: createObject → completeObject → generateDownloadUrl → createDevbox → waitForDevboxStatus → executeCommand. Specs on APIs.io.