Rename project from inventree to vibetree

- go.mod module path (and every internal/vibetree import) inventree -> vibetree
- cmd/inventree/ -> cmd/vibetree/, deploy/inventree.service -> vibetree.service
- Default site name (seed data + the siteName template func's fallback)
  is now "vibetree", shown in the navbar, <title>, and login page
- Session cookie renamed inventree_session -> vibetree_session
- Default DB path data/inventree.db -> data/vibetree.db, CLI/log text,
  Dockerfile, docker-compose.yml, README, .gitignore/.dockerignore all
  updated to match

Existing installs: this changes the session cookie name (users will be
signed out once) and the default DB filename (point -db at your existing
file, or rename it, to keep your data).
This commit is contained in:
Owen
2026-08-17 17:14:52 -05:00
parent 14e2f3bb77
commit f3a959334f
47 changed files with 139 additions and 139 deletions
+7 -7
View File
@@ -9,19 +9,19 @@ RUN go mod download
COPY . .
ARG VERSION=dev
RUN go build -trimpath -ldflags "-s -w -X main.version=${VERSION}" -o /out/inventree ./cmd/inventree
RUN go build -trimpath -ldflags "-s -w -X main.version=${VERSION}" -o /out/vibetree ./cmd/vibetree
FROM alpine:3.20
RUN apk add --no-cache ca-certificates tzdata && \
addgroup -S inventree && adduser -S inventree -G inventree
addgroup -S vibetree && adduser -S vibetree -G vibetree
WORKDIR /app
COPY --from=build /out/inventree /usr/local/bin/inventree
RUN mkdir -p /app/data && chown -R inventree:inventree /app/data
COPY --from=build /out/vibetree /usr/local/bin/vibetree
RUN mkdir -p /app/data && chown -R vibetree:vibetree /app/data
USER inventree
USER vibetree
VOLUME ["/app/data"]
EXPOSE 8080
HEALTHCHECK --interval=30s --timeout=3s --start-period=5s CMD wget -qO- http://127.0.0.1:8080/healthz || exit 1
ENTRYPOINT ["inventree"]
CMD ["serve", "-addr", ":8080", "-db", "/app/data/inventree.db"]
ENTRYPOINT ["vibetree"]
CMD ["serve", "-addr", ":8080", "-db", "/app/data/vibetree.db"]