Skip to main content

Module profile

Module profile 

Source
Expand description

Docker resource naming for optional sandbox profile isolation.

Legacy behavior uses shared resource names (opencode-cloud-sandbox, latest, etc.). When OPENCODE_SANDBOX_INSTANCE is set to a valid instance ID, names are derived with profile-specific suffixes/tags so concurrent worktrees can run independently.

Structs§

DockerResourceNames

Constants§

INSTANCE_LABEL_KEY
Container and volume label key identifying the active instance.
SANDBOX_INSTANCE_ENV
Environment variable carrying the active sandbox instance id.

Functions§

active_resource_names
Resolve active resource names from OPENCODE_SANDBOX_INSTANCE.
env_instance_id
Read and validate sandbox instance from environment.
remap_container_name
Remap legacy container name to active profile container name.
remap_image_tag
Remap legacy image tags to active profile tags.
resource_names_for_instance
Resolve resource names for an optional instance id.