Add Docker containerization of unreal-index service#20
Open
Conversation
|
@claude Please review this PR. Focus on:
Use the opus model for thorough analysis. |
Collaborator
Author
|
@claude could you review this? |
Replace manual WSL setup (Node 22, Go, Zoekt build, screen) with `docker compose up`. Multi-stage Dockerfile builds Zoekt from Go and compiles native Node modules, producing a ~250MB runtime image. - Dockerfile: 3-stage build (Go builder, Node builder, slim runtime) - docker-compose.yml: named volumes, 4GB mem limit, health check - docker-compose.dev.yml: source mounts with --watch for development - config.docker.json: container paths (/data/), host 0.0.0.0 - docker-entrypoint.sh: data dir setup, config fallback, exec node - index.js: env-var config path, relaxed project validation for Docker - start-service.sh: --docker flag with health polling - test-docker-perf.mjs: 6-phase Docker perf test suite - DOCKER.md: setup guide, architecture, troubleshooting Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Collaborator
Author
|
@claude could you review this |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
docker compose updocker compose down)Changes
New files (8)
Dockerfiledocker-compose.ymldocker-compose.dev.yml--watch, Zoekt port exposedconfig.docker.json/data/),host: 0.0.0.0, empty projectsdocker-entrypoint.shexec nodefor signal handling.dockerignoretest-docker-perf.mjsDOCKER.mdModified files (2)
src/service/index.jsUNREAL_INDEX_CONFIGenv var override + relaxed project validation (warning instead of error for empty projects)start-service.sh--dockerflag: runsdocker compose up -dand polls health for 30sDesign decisions
down. Onlydown -vdestroys themstop_grace_period: 30s+execentrypoint for direct SIGTERMTest plan
docker compose buildcompletes without errorsdocker compose up -dstarts,curl localhost:3847/healthresponds within 30slocalhost:3847/internal/ingestand data persistsdocker compose down && docker compose up -dretains all indexed datanode test-docker-perf.mjspasses all 6 phasesdocker compose -f docker-compose.yml -f docker-compose.dev.yml upworks for dev🤖 Generated with Claude Code