Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions pkg/oci/Dockerfile.template
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,6 @@ ENV TELEMETRY_ENABLED=true
ENV CAGENT_HIDE_FEEDBACK_LINK=0
ENV CAGENT_HIDE_TELEMETRY_BANNER=0
CMD ["api", "--listen", "unix:///data/agent.sock", "--session-db", "/data/session.db", "/agent.yaml"]
{{- if (gt (len .ServersJson) 0) }}
RUN cat <<EOF >/servers.json
{{ .ServersJson }}
EOF
{{- end }}
RUN cat <<EOF >/agent.yaml
{{ .AgentConfig }}
EOF
13 changes: 0 additions & 13 deletions pkg/oci/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bytes"
"context"
_ "embed"
"encoding/json"
"fmt"
"log/slog"
"os"
Expand Down Expand Up @@ -66,17 +65,6 @@ func BuildDockerImage(ctx context.Context, agentFilePath, dockerImageName string
}
}

// Build the content of an optional servers.json
var serversJson string
if len(servers.MCPServers) > 0 {
data, err := json.MarshalIndent(servers, "", " ")
if err != nil {
return err
}

serversJson = string(data)
}

// Analyze the config to find which secrets are needed
modelNames := config.GatherModelNames(cfg)
mcpServers := config.GatherMCPServerReferences(cfg)
Expand All @@ -90,7 +78,6 @@ func BuildDockerImage(ctx context.Context, agentFilePath, dockerImageName string
"BuildDate": time.Now().UTC().Format(time.RFC3339),
"Description": cfg.Agents["root"].Description,
"McpServers": strings.Join(mcpServers, ","),
"ServersJson": serversJson,
"Metadata": cfg.Metadata,
"Models": strings.Join(modelNames, ","),
}); err != nil {
Expand Down