Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
0d85a36
chore #2: move d-lmdb library sources into workspace member directory
JoshuaChi Jul 27, 2026
1c1debd
chore #2: add workspace root manifest, d-lmdb-server skeleton
JoshuaChi Jul 27, 2026
c8b22cc
fix #2: get_linearizable/get_lease leaked wire envelope, unify decode…
JoshuaChi Jul 28, 2026
bdedbe4
chore #2: point d-engine dep at fix/425-leader-hint branch
JoshuaChi Jul 28, 2026
e88ee19
fix #2: correct lmdb_map_size → map_size_gb typo in single-node examp…
JoshuaChi Jul 28, 2026
76ae8c8
feat #2: d-lmdb-server HTTP+JSON API, CLI, and config template
JoshuaChi Jul 28, 2026
5b259c4
feat #2: add Dockerfile, entrypoint, and .dockerignore for d-lmdb-server
JoshuaChi Jul 28, 2026
4bd1cd9
fix #2: leader_hint uses HTTP port, not Raft port
JoshuaChi Jul 28, 2026
5563ba7
feat #2: docker-compose 3-node cluster + HAProxy + smoke test
JoshuaChi Jul 28, 2026
322c2cd
docs #2: add d-lmdb-server README, fix config.example.toml paths
JoshuaChi Jul 28, 2026
81aa249
chore #2: stop tracking .agents/, add to .gitignore
JoshuaChi Jul 28, 2026
470fb7a
ci #2: multi-arch Docker release workflow, gated on smoke test
JoshuaChi Jul 28, 2026
b9fb3ee
docs #2: add root README (landing page + library/service split)
JoshuaChi Jul 28, 2026
3349d93
docs #2: dedupe README decision-tree, restore honest limitations
JoshuaChi Jul 28, 2026
206579b
fix #2: update readme
JoshuaChi Jul 28, 2026
23d96c3
fix #2: ignore envrc
JoshuaChi Jul 28, 2026
26aeb55
fix #3: fix format
JoshuaChi Jul 28, 2026
ff7654d
fix #3: review fixes — tests, docs, CI, Docker CVEs
JoshuaChi Jul 28, 2026
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
14 changes: 14 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
target/
.git/
.zed/
.DS_Store
data/
db/
logs/
*.mdb
d-lmdb-server/config.toml

# The rust:1.89-slim-bookworm base image already IS the pinned version — this
# file's only effect inside the build is making rustup fetch clippy/rustfmt
# (unused for `cargo build`) on every build.
rust-toolchain.toml
119 changes: 119 additions & 0 deletions .github/workflows/docker-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
name: Docker Release

# Triggered by creating a GitHub Release, not every push to main.
on:
release:
types: [created]

permissions:
contents: read

env:
IMAGE: deventlab/d-lmdb

jobs:
# Build, smoke-test, then push by digest — per platform. arm64 runs
# under QEMU: verifies correctness, not real hardware timing.
build-test-push:
name: Build, test, push (${{ matrix.platform }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
platform: [linux/amd64, linux/arm64]
steps:
- name: Set platform tag for artifact naming
run: |
platform=${{ matrix.platform }}
echo "PLATFORM_PAIR=${platform//\//-}" >> "$GITHUB_ENV"

- uses: actions/checkout@v4

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Build image for this platform (local only, not pushed yet)
uses: docker/build-push-action@v6
with:
context: .
platforms: ${{ matrix.platform }}
tags: d-lmdb-server:compose
load: true

- name: Run 3-node smoke test against the freshly built image
run: DLMDB_SKIP_BUILD=1 ./compose/smoke-test.sh

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Push tested image by digest (no rebuild)
id: push
run: |
TARGET="docker.io/${{ env.IMAGE }}:${{ github.sha }}"
docker tag d-lmdb-server:compose "$TARGET"
docker push "$TARGET"
DIGEST=$(docker inspect --format='{{index .RepoDigests 0}}' "$TARGET" | grep -o 'sha256:[a-f0-9]\{64\}')
echo "digest=$DIGEST" >> "$GITHUB_OUTPUT"

- name: Export digest
run: |
mkdir -p /tmp/digests
DIGEST="${{ steps.push.outputs.digest }}"
touch "/tmp/digests/${DIGEST#sha256:}"

- name: Upload digest
uses: actions/upload-artifact@v4
with:
name: digests-${{ env.PLATFORM_PAIR }}
path: /tmp/digests/*
if-no-files-found: error
retention-days: 1

# Only runs if every platform above succeeded.
merge:
name: Merge multi-platform manifest
runs-on: ubuntu-latest
needs: build-test-push
steps:
- name: Strip 'v' prefix from release tag
env:
RELEASE_TAG: ${{ github.event.release.tag_name }}
run: |
printf 'STRIPPED_VERSION=%s\n' "${RELEASE_TAG#v}" >> "$GITHUB_ENV"

- name: Download digests
uses: actions/download-artifact@v4
with:
path: /tmp/digests
pattern: digests-*
merge-multiple: true

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Log in to Docker Hub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_ACCESS_TOKEN }}

- name: Create and push manifest list
working-directory: /tmp/digests
env:
IMAGE: ${{ env.IMAGE }}
run: |
docker buildx imagetools create \
-t "docker.io/${IMAGE}:${STRIPPED_VERSION}" \
-t "docker.io/${IMAGE}:latest" \
$(printf 'docker.io/%s@sha256:%s ' "${IMAGE}" *)

- name: Verify manifest
env:
IMAGE: ${{ env.IMAGE }}
run: docker buildx imagetools inspect "docker.io/${IMAGE}:${STRIPPED_VERSION}"
13 changes: 10 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,16 @@ target
/logs/
**/*.mdb

# OS / editor
# OS / editor / local AI-agent tooling config
.DS_Store
.zed/
.agents/

# Library crate: consumers resolve their own dependency versions.
Cargo.lock
# Workspace now includes d-lmdb-server, a deployable binary — commit Cargo.lock
# for reproducible builds. (d-lmdb the library still doesn't need one committed
# on its own, but Cargo workspaces share a single lockfile at the root.)

# Developer's real d-lmdb-server config, copied from config.example.toml — may
# contain machine-local paths, gets regenerated per-developer, never committed.
/d-lmdb-server/config.toml
.envrc
Loading
Loading