Cleanup backend and agent provider abstractions #216
@@ -110,7 +110,7 @@ def resolve_plan(
|
||||
dockerfile_path = str(p_dockerfile)
|
||||
|
didericis marked this conversation as resolved
Outdated
|
||||
else:
|
||||
image_default = provider_runtime.image
|
||||
image = os.environ.get("BOT_BOTTLE_IMAGE", image_default)
|
||||
image = image_default
|
||||
|
didericis marked this conversation as resolved
Outdated
didericis
commented
Are we using this anywhere? Not sure if it's worth keeping this. If it's being used should be renamed to Are we using this anywhere? Not sure if it's worth keeping this. If it's being used should be renamed to `BOT_BOTTLE_AGENT_IMAGE`.
|
||||
derived_image = ""
|
||||
runtime_image = image
|
||||
if spec.copy_cwd:
|
||||
|
||||
@@ -116,9 +116,6 @@ def resolve_plan(
|
||||
prompt_file.chmod(0o600)
|
||||
|
||||
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 = ""
|
||||
if provider.dockerfile:
|
||||
agent_dockerfile_path = _resolve_manifest_dockerfile(provider.dockerfile, spec)
|
||||
@@ -133,7 +130,7 @@ def resolve_plan(
|
||||
image_default = f"bot-bottle-{provider.template}:{slug}"
|
||||
else:
|
||||
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(
|
||||
template=provider.template,
|
||||
dockerfile=agent_dockerfile_path,
|
||||
|
||||
Reference in New Issue
Block a user
This rename used to make sense, but not anymore: places where we're assigning
image_defaultshould be changed so we assign toimageand we should just remove thisimage = image_defaultassignment.