refactor: remove BOT_BOTTLE_IMAGE env override
lint / lint (push) Failing after 1m51s
test / unit (pull_request) Successful in 39s
test / integration (pull_request) Successful in 1m0s

Unused in tests, docs, or examples. Can be added back if/when merited.
This commit is contained in:
2026-06-08 04:05:29 +00:00
parent 963a178b20
commit 41590ede1f
2 changed files with 2 additions and 5 deletions
+1 -1
View File
@@ -110,7 +110,7 @@ def resolve_plan(
dockerfile_path = str(p_dockerfile) dockerfile_path = str(p_dockerfile)
else: else:
image_default = provider_runtime.image image_default = provider_runtime.image
image = os.environ.get("BOT_BOTTLE_IMAGE", image_default) image = image_default
derived_image = "" derived_image = ""
runtime_image = image runtime_image = image
if spec.copy_cwd: if spec.copy_cwd:
+1 -4
View File
@@ -116,9 +116,6 @@ def resolve_plan(
prompt_file.chmod(0o600) prompt_file.chmod(0o600)
machine_name = f"bot-bottle-{slug}" machine_name = f"bot-bottle-{slug}"
# Stash the agent image ref — `launch.launch` runs the
# build → pack pipeline at bringup. Honors BOT_BOTTLE_IMAGE
# to match the docker backend's `resolve_plan` default.
agent_dockerfile_path = "" agent_dockerfile_path = ""
if provider.dockerfile: if provider.dockerfile:
agent_dockerfile_path = _resolve_manifest_dockerfile(provider.dockerfile, spec) agent_dockerfile_path = _resolve_manifest_dockerfile(provider.dockerfile, spec)
@@ -133,7 +130,7 @@ def resolve_plan(
image_default = f"bot-bottle-{provider.template}:{slug}" image_default = f"bot-bottle-{provider.template}:{slug}"
else: else:
image_default = provider_runtime.image image_default = provider_runtime.image
agent_image_ref = os.environ.get("BOT_BOTTLE_IMAGE", image_default) agent_image_ref = image_default
agent_provision = agent_provision_plan( agent_provision = agent_provision_plan(
template=provider.template, template=provider.template,
dockerfile=agent_dockerfile_path, dockerfile=agent_dockerfile_path,