Creating Blueprints from Public Image Registries
Runloop supports creating Blueprints from public image registries. This is useful when you want to use a specific version of a tool or framework.Docker Hub Images
This process works with any image that is available on Docker Hub. The following example creates a Blueprint from thewordpress image at Docker Hub:
Public ECR Images
For more information about Docker-in-Docker support and available images, see Running Docker on a Devbox.Using Secrets in Blueprints
You can securely inject secrets (like API tokens, credentials, or SSH keys) into your blueprint build process. This is useful for accessing private resources during the build, such as cloning private repositories or downloading authenticated packages.Setting Up Secrets
- Create secrets in the Settings page of your Runloop Dashboard or via the SDK
- Mount secrets when creating a blueprint using the format
{ env_var_name: secret_name } - Use secrets in either
dockerfileorsystem_setup_commands
Example: Using an npm token to install a private package
This example assumes you have an npm token with theread:packages scope.
Custom Dockerfiles
For more complex environments, you can use a full Dockerfile as the basis for your Blueprint. This is useful when you need to install multiple tools or perform complex setup operations.-
To avoid unnecessarily downloading full Linux installations, base your Dockerfile on the Runloop base image. Note that you must use the
runloop:prefix:The Runloop base image is public and can be downloaded for local testing. -
When you create a Blueprint with your Dockerfile, Runloop will:
- Use your Dockerfile as the base
- Apply any
launch_parameters.launch_commandsspecified - Set up any code mounts you have defined
Composable Blueprints
Runloop supports multistage builds, allowing you to create a Blueprint using another Blueprint as the base. This enables layered configurations where common tooling can be shared across multiple specialized blueprints.FROM instruction via the Dockerfile parameter to specify the composable Blueprint for building:
Customizing the Base User
You can customize the base user for a Blueprint. SSH and execute commands to Devboxes created from this blueprint will be via the specified user.Next Steps
- Configure network policies - Restrict network access during build and runtime
- Manage blueprint lifecycle - Delete blueprints and configure launch parameters
- Troubleshoot blueprint builds - Debug failed builds
