fix: fix missing seed.json on startup by renaming file (#75)
Renamed `data/seed_2025_05_16.json` to `data/seed.json` and updated `Dockerfile` ## Motivation and Context When cloning the repository and building the project using: ```bash go build ./cmd/registry .\\registry.exe ``` the application fails to start because the default seed file path (`data/seed.json`) does not exist in the repo: ``` Failed to read seed file: failed to read file: open data/seed.json: The system cannot find the file specified. ``` ## How Has This Been Tested? ```bash go build ./cmd/registry .\\registry.exe // ./registry ``` ## Breaking Changes None ## Types of changes <!-- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to change) - [ ] Documentation update ## Checklist <!-- Go over all the following points, and put an `x` in all the boxes that apply. --> - [x] I have read the [MCP Documentation](https://modelcontextprotocol.io) - [x] My code follows the repository's style guidelines - [x] New and existing tests pass locally - [ ] I have added appropriate error handling - [ ] I have added or updated documentation as needed Co-authored-by: Adam Jones <adamj+git@anthropic.com>
This commit is contained in:
parent
4f62964de3
commit
26b85d7158
2 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ RUN go build ${GO_BUILD_TAGS:+-tags="$GO_BUILD_TAGS"} -o /build/registry ./cmd/r
|
|||
FROM alpine:latest
|
||||
WORKDIR /app
|
||||
COPY --from=builder /build/registry .
|
||||
COPY --from=builder /app/data/seed_2025_05_16.json /app/data/seed.json
|
||||
COPY --from=builder /app/data/seed.json /app/data/seed.json
|
||||
COPY --from=builder /app/internal/docs/swagger.yaml /app/internal/docs/swagger.yaml
|
||||
EXPOSE 8080
|
||||
|
||||
|
|
|
|||
14725
data/seed.json
Normal file
14725
data/seed.json
Normal file
File diff suppressed because it is too large
Load diff
Loading…
Reference in a new issue