molecule-core/scripts/build-images.sh
Hongming Wang 24fec62d7f initial commit — Molecule AI platform
Forked clean from public hackathon repo (Starfire-AgentTeam, BSL 1.1)
with full rebrand to Molecule AI under github.com/Molecule-AI/molecule-monorepo.

Brand: Starfire → Molecule AI.
Slug: starfire / agent-molecule → molecule.
Env vars: STARFIRE_* → MOLECULE_*.
Go module: github.com/agent-molecule/platform → github.com/Molecule-AI/molecule-monorepo/platform.
Python packages: starfire_plugin → molecule_plugin, starfire_agent → molecule_agent.
DB: agentmolecule → molecule.

History truncated; see public repo for prior commits and contributor
attribution. Verified green: go test -race ./... (platform), pytest
(workspace-template 1129 + sdk 132), vitest (canvas 352), build (mcp).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-13 11:55:37 -07:00

28 lines
815 B
Bash
Executable File

#!/usr/bin/env bash
# Build all workspace runtime images
# Base image first, then each adapter extends it
set -e
cd "$(dirname "$0")/../workspace-template"
echo "=== Building base image ==="
docker build -t workspace-template:base -t workspace-template:latest .
for adapter in langgraph claude_code openclaw deepagents crewai autogen; do
DOCKERFILE="adapters/${adapter}/Dockerfile"
if [ ! -f "$DOCKERFILE" ]; then
echo "Skipping $adapter (no Dockerfile)"
continue
fi
# Image tag uses dashes (claude_code -> claude-code)
TAG=$(echo "$adapter" | tr '_' '-')
echo ""
echo "=== Building workspace-template:${TAG} ==="
docker build -t "workspace-template:${TAG}" -f "$DOCKERFILE" .
done
echo ""
echo "=== All images built ==="
docker images workspace-template --format "{{.Tag}}\t{{.Size}}"