Skip to content

build(docker): make image builds self-contained - #281

Merged
g1eny0ung merged 1 commit into
mainfrom
codex/self-contained-docker-build
Oct 20, 2026
Merged

g1eny0ung merged 1 commit into
mainfrom
codex/self-contained-docker-build

Conversation

@g1eny0ung

Copy link
Copy Markdown
Member

Why

Standalone Docker builds try to pull unavailable PingCAP intermediate images. Build all stages from the root Dockerfile using official Go and Debian bases.

What changed

  • Consolidate the compiler, scratch artifact and runtime stages, and remove the old Dockerfiles and taily build targets.
  • Use the bundled stress-ng through PATH and strip debug symbols from both Go helpers.
  • Build and verify images on both CI architectures, remove the duplicate build step, and document the image targets.

Scope

The root Dockerfile now produces the runtime image. Make image targets default to chaosd:latest, chaosd-binary:local and chaosd-build-base:local.

Verification

  • Runtime builds and image checks passed on native arm64 and emulated amd64. Isolated FileTool creation and PortOccupyTool HTTP checks passed on both.
  • Swagger runtime and scratch artifact builds passed.
  • Dockerfile, CI workflow, shell syntax and license checks passed.

Signed-off-by: Yue Yang <g1enyy0ung@gmail.com>
@g1eny0ung
g1eny0ung merged commit c030577 into main Oct 20, 2026
19 checks passed
@g1eny0ung
g1eny0ung deleted the codex/self-contained-docker-build branch October 20, 2026 01:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant