Startup Scripts¶
Reusable bootstrap scripts that execute automatically when machines or containers launch.
Startup Scripts are reusable shell scripts managed through the MetaCloud that execute automatically when a machine or container launches. They handle bootstrapping tasks -- installing packages, configuring services, mounting data, setting environment variables -- so that formations produce fully configured environments without manual intervention.
Independent of Cloud Keys
Unlike other MetaCloud artifacts, Startup Scripts are not linked to a Cloud Key. They exist independently and are only used in the context of formations and container images. Deleting a Cloud Key does not affect Startup Scripts.
Actions¶
| Action | Description |
|---|---|
| Add Startup Script | Create a new script with commands and environment variables |
| Share | Grant access to users, groups, or organizations |
| Publish | List on the RosettaHub Marketplace |
| Customize | Update label, commands, and configuration |
| Delete | Remove the script |
Configuration¶
| Setting | Description |
|---|---|
| Commands | Shell commands to execute at launch |
| Environment Variables | Key-value pairs injected into the script's environment |
| Process | The process or shell used to run the script |
| Detach | Run the script in the background |
| TTY | Allocate a pseudo-terminal for the script |
| Privileged | Run with elevated permissions |
How Startup Scripts Work¶
Startup scripts can be attached to container images and are executed when the container starts. They can also be referenced inline within formation launch configurations.
Shared startup scripts let teams standardize bootstrapping across formations without duplicating configuration. Publish scripts to the RosettaHub Marketplace to share them with the wider community.
Related Topics¶
- Container Images - Attach startup scripts to container images
- Formations - Formations use scripts for environment bootstrapping