Repository navigation
Commit 1c4385d
build(docker): ship seidb in the seid image (#4488)
## Summary
The seid image now ships `/usr/bin/seidb`. It builds in the builder
stage, from the same source tree as `seid`.
## Why
The FlatKV migration runbook runs `seidb` next to `seid` on Kubernetes
through `kubectl exec -c seid`. It uses it for:
- `migrate-evm-status`, `hashlog get-block`, and `dump-flatkv`
- `evm-logical-digest`
- the KV-repair inspect steps
Today these steps have no good container to run in:
- **seid image:** it has a shell and `tar`, but no `seidb`.
- **sei-k8s-controller sidecar image:** it has `seidb`, but it is
distroless, with no shell and no `tar`. The runbook's shell steps and
`kubectl cp` fail there. Exec into the sidecar also exposes the operator
keyring, because the sidecar mounts it.
Building `seidb` from the seid source tree also keeps the two tools on
one commit. The runbook asks for that when it says to record the `seidb`
commit.
## Change
- **Builder stage:** a new step builds `seidb` with `CGO_ENABLED=0`.
`seidb` is pure Go and does not need `libwasmvm`. The controller's
sidecar Dockerfile builds it the same way.
- **Final stage:** the binary is copied next to `seid`.
## Verification
- `CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build
./sei-db/tools/cmd/seidb` on this branch's base (`6278fe9b1`): passed,
statically linked ELF, about 15 s with a warm module cache.
- No source file under `sei-db/` uses `go:embed`, so `.dockerignore`
(which excludes `*.md` and `*_test.go`) removes nothing the build needs.
- Not run: `docker build`, because the Docker daemon was not running on
the build machine. The `docker_publish.yml` workflow builds this
Dockerfile.
Refs PLT-1389, PLT-1393.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: alexander-sei <alexanderh@seinetwork.io>1 parent 078f5d1 commit 1c4385d
1 file changed
Lines changed: 6 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
40 | 45 | | |
41 | 46 | | |
42 | 47 | | |
43 | 48 | | |
44 | 49 | | |
45 | 50 | | |
46 | 51 | | |
| 52 | + | |
47 | 53 | | |
48 | 54 | | |
49 | 55 | | |
| |||
0 commit comments