Add SQLite persistence, import-snapshot tool, and karma functionality

This commit is contained in:
Ilya Groshev
2026-04-20 09:57:47 +03:00
parent c9ad3fa4f4
commit c33e738fd5
70 changed files with 4151 additions and 833 deletions
+4 -1
View File
@@ -12,7 +12,8 @@ RUN apk add --no-cache \
libcap
RUN go install google.golang.org/protobuf/cmd/protoc-gen-go@latest &&\
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest &&\
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest &&\
go install github.com/pressly/goose/v3/cmd/goose@latest &&\
PATH="$PATH:$(go env GOPATH)/bin" make proto &&\
go build -o lunar-tear ./cmd/lunar-tear &&\
setcap cap_net_bind_service=+ep ./lunar-tear
@@ -26,6 +27,8 @@ RUN chown 1000:1000 /opt/lunar-tear
USER 1000
COPY --from=builder /usr/local/src/lunar-tear .
COPY --from=builder /root/go/bin/goose /usr/local/bin/goose
COPY --from=builder /usr/local/src/migrations ./migrations
COPY entrypoint.sh .