Skip to content

chore(docker): add Dockerfile for container builds#129

Merged
slow2342 merged 1 commit into
mainfrom
chore/docker
Jun 14, 2026
Merged

chore(docker): add Dockerfile for container builds#129
slow2342 merged 1 commit into
mainfrom
chore/docker

Conversation

@slow2342

Copy link
Copy Markdown
Owner

Summary

  • Add multi-stage Dockerfile for building and running aether in containers.
  • Add .dockerignore to exclude non-essential files from build context.

Changes

  • Dockerfile — Multi-stage build: rust:1-bookworm builder with protobuf-compiler + clang (RocksDB bindgen), debian:bookworm-slim runtime (189MB). Dependency caching via dummy files so code-only changes rebuild in ~25s.
  • .dockerignore — Excludes target, .git, tests, IDE files, etc.

Testing

Verified in Docker container:

  • Put/Get/Delete/Range
  • Txn (compare-and-swap, success and failure paths)
  • Lease grant, Put with lease
  • Watch create
  • Lock, Election campaign/leader
  • Maintenance status, Cluster member list
  • Auth validation

How to verify

docker build -t aether:latest .
docker run --rm -p 2379:2379 -p 2380:2380 aether:latest --node-id 1 --addr 0.0.0.0:2380 --data-dir /data

Multi-stage build: rust:1-bookworm builder with protobuf-compiler and
clang (for RocksDB bindgen), debian:bookworm-slim runtime (189MB).
Dependency caching via dummy files so code-only changes rebuild in ~25s.
@slow2342 slow2342 merged commit 5b23cf3 into main Jun 14, 2026
10 checks passed
@slow2342 slow2342 deleted the chore/docker branch June 14, 2026 11:31
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