78 Commits
Author SHA1 Message Date
Trung Nguyen 16b0d3ac3a bump Go to 1.27.3
Pick up the security fixes in the Go 1.27.3 point release for released binaries and images.

Assisted-By: docker-agent
2026-10-21 10:39:53 +02:00
David Gageot ecb5c78a6e chore: bump Go to 1.27.2 2026-10-09 12:03:13 +02:00
maxcleme c7fe3c8730 feat(sandbox): add aws cli to sbx-templates image
Signed-off-by: maxcleme <maxime.clement@docker.com>
2026-09-10 17:57:10 +02:00
maxcleme 71b951f0ee feat(sandbox): add kubectl to sbx-templates image
Signed-off-by: maxcleme <maxime.clement@docker.com>
2026-09-10 10:07:24 +02:00
Arnaud Héritier 2bb1e4b264 chore: upgrade to Go 1.27.0 and apply 1.27 modernizations
- Bump go.mod and Dockerfile from go 1.26.5 to go 1.27.0
- Run go mod tidy to update checksums
- Remove obsolete // +build build tag from e2e/binary/binary_test.go
- Use slices.Backward in cmd/wasm/runtime_wasm.go reverse loop
- Use strings.CutLast (new in Go 1.27) at 6 sites:
  pkg/toolinstall/installer.go, pkg/model/provider/dmr/available.go,
  pkg/model/provider/dmr/pull.go, pkg/config/auto.go,
  pkg/modelinfo/modelinfo.go (×2)
- Bump golangci-lint from v2.12.2 to v2.13.1 (v2.12.2 panics on
  Go 1.27 AST via staticcheck v0.7.0)
2026-08-23 09:35:49 +00:00
Sayt-0 ab4cc5b21d fix(sandbox): use available UTF-8 locale 2026-07-31 13:15:24 +02:00
Arnaud Héritier 97d286d679 fix: replace unauthenticated GitHub API call in template stage with COPY --from 2026-07-19 10:15:05 +00:00
Sayt-0 28c294f8d5 build: set MACOSX_VERSION_MIN=11.0 for darwin cross-builds
Alpine 3.23 ships clang 21, which emits -Woverriding-deployment-version
when the target triple carries the legacy "10.16" Big Sur alias that
xx v1.9.0 still uses for darwin/arm64. runtime/cgo compiles with
-Wall -Werror, so the warning breaks the release build:

  clang: error: overriding deployment version from '10.16' to '11.0'

Exporting MACOSX_VERSION_MIN=11.0 makes xx emit a canonical triple.
xx fixed its default upstream in tonistiigi/xx@203eae866b but no
tagged release contains it yet.
2026-07-15 11:52:31 +02:00
David Gageot 3cd41cb57a Bump Alpine to 3.23
golang:1.26.5-alpine3.22 is not published on Docker Hub; Go 1.26.5 images
are only available on Alpine 3.23. This fixes the failing release build.
2026-07-15 10:25:57 +02:00
David Gageot 089cd4dacb Align go version
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-07-13 17:25:02 +02:00
David Gageot de538e85dc Improve TUI rendering
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-07-10 16:02:08 +02:00
David Gageot 5a3b53fa31 feat: install latest docker-mcp plugin in sbx template
All mcp-gateway releases are prereleases, so the GitHub /releases/latest
redirect doesn't work; resolve the newest tag via the releases API instead.

Assisted-By: Claude
2026-07-09 09:26:34 +02:00
David Gageot 632ee6c274 Simplify Dockerfile
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-07-09 09:18:31 +02:00
David Gageot 2fb795a0b6 Add tmux or running docker agent board in sbx
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-07-07 08:32:53 +02:00
David Gageot 2d9e7bad39 ci: build and publish docker-agent sandbox templates
Adds templates/Dockerfile and two CI jobs that build and push
docker/sandbox-templates:docker-agent{,-docker} images on main (edge)
and v* tags (versioned + floating).

Assisted-By: claude-sonnet-4-5
2026-07-03 18:24:38 +02:00
David Gageot ae49837976 build: bump Dockerfile Go to 1.26.4
Required by the github.com/rumpl/harness bump, which raised the go.mod directive to go 1.26.4.

Assisted-By: docker-agent
2026-06-16 19:39:26 +02:00
David Gageot c4c6795015 bump go to 1.26.3 2026-05-08 10:20:19 +02:00
David Gageot 8bd7a2cc54 speed up PR image builds 2026-04-27 18:39:29 +02:00
David Gageot 0eec8c3ecf chore: bump Go to 1.26.2
Assisted-By: docker-agent
2026-04-21 17:38:44 +02:00
David Gageot 6c810bfdac Add custom linter to enforce config version import chain
Introduce a project-specific linter using rubocop-go that ensures config version packages (pkg/config/vN) only import their immediate predecessor. This prevents accidental version skipping or importing pkg/config/latest from frozen versions.

Assisted-By: docker-agent
2026-03-23 15:17:31 +01:00
David Gageot cb001a241b Remove package to github.com/docker/docker-agent
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-03-09 12:04:59 +01:00
David Gageot 57635d745a Rename cagent to docker-agent
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-03-09 11:24:08 +01:00
Guillaume Tardif 4621cf994e Remove sandbox-template unused image
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2026-03-09 10:12:31 +01:00
Guillaume Tardif 6c0e083a40 Dockerfile with docker-agent binary, keeping cagent only as compatible symlink
Signed-off-by: Guillaume Tardif <guillaume.tardif@gmail.com>
2026-03-09 09:51:57 +01:00
David Gageot 22772661ea Add --sandbox flag to run command for Docker sandbox isolation
When --sandbox is passed to 'cagent run', the command delegates to
'docker sandbox run cagent' which launches cagent inside an isolated
microVM. The original arguments are forwarded after stripping --sandbox
and the 'run' subcommand (since the sandbox agent type already invokes
'cagent run' internally).

A pre-flight check produces clear error messages when Docker is not
installed or when Docker Desktop lacks sandbox support.

Assisted-By: cagent
2026-03-05 14:26:28 +01:00
David Gageot 893e65bc97 Bump Go to 1.26.0
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-02-12 07:03:07 +01:00
David Gageot 5892826717 Help fix #1419
Signed-off-by: David Gageot <david.gageot@docker.com>
2026-02-07 10:12:07 +01:00
David Gageot 0366df9c94 Optimize Dockerfile build
Move clang and zig installation to builder-base stage before go mod download. This improves layer caching since these cross-compilation tools rarely change and don't need to be reinstalled when source code changes.

Assisted-By: cagent
2025-12-31 19:17:34 +01:00
CrazyMax e824d93fd9 dockerfile: zig support with xx 1.9.0
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-12-05 12:13:32 +01:00
David Gageot acc64f42ad Bump Go to 1.25.5
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-12-04 13:31:25 +01:00
David Gageot d288df7a6e Fix alpine tag
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-12-04 13:31:25 +01:00
Christopher Petito 31c9ab8472 Fix dockerized windows builds
Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
2025-12-02 17:36:42 +01:00
Christopher Petito f6c7d4e63a target correct zig arch during windows build
Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
2025-11-28 16:03:03 +01:00
Christopher Petito bc2b832c70 Code aware chunking in RAG strategies using treesitter
Signed-off-by: Christopher Petito <chrisjpetito@gmail.com>
2025-11-28 13:16:08 +01:00
CrazyMax 7a9842b0d1 dockerfile: add build args for alpine and go version
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
2025-11-27 11:16:37 +01:00
David Gageot 3e01b5c8cf Update Go version to 1.25.4 2025-11-15 09:59:40 +01:00
David Gageot 4c8f370355 Bump Go to 1.25.3
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-10-16 09:07:34 +02:00
David Gageot bc3fe5b2dc Bump Go to 1.25.2
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-10-09 12:42:24 +02:00
David Gageot 8391553c5b Remove dead code
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-10-01 10:34:20 +02:00
Derek Misler d750914b72 Hardcode telemetry credentials for open source distribution
Replace environment variable-based telemetry configuration with hardcoded production credentials. This ensures users building from source automatically send telemetry data without needing secret access. Debug mode routes to staging endpoint.
2025-09-30 12:39:12 -04:00
David Gageot 6389f8a585 Force colors inside container
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-25 19:11:58 +02:00
David Gageot bd72f0e29f Add a non root user to the docker/cagent image
Fixes #170

Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-25 19:06:44 +02:00
David Gageot 7391b35870 Remove annoying BuildTime
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-25 13:46:03 +02:00
David Gageot 6f31cb5ead Bump to Go 1.25.1
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-23 09:45:52 +02:00
David Gageot f3d1728141 Simpler Dockerfile
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-23 09:44:16 +02:00
David Gageot b12e724d84 Smaller docker/cagent image
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-22 09:36:08 +02:00
David Gageot e3219faeff Add certificates
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-19 19:07:47 +02:00
David Gageot a9f44bb6d6 wip
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-19 18:15:39 +02:00
David Gageot 2486fcf946 The remote MCP is stdio over TCP, not proper remote
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-19 12:31:52 +02:00
David Gageot 9f93aeaee8 Fix 'cagent version'
Signed-off-by: David Gageot <david.gageot@docker.com>
2025-09-16 22:27:20 +02:00