v0.5.0 bfab294

Dockerfile RawHistoryFolder

1# syntax=docker/dockerfile:1
2
3# Release image: a static ermite binary on alpine with git and git-http-backend (ermite shells out to git >= 2.45).
4#
5#   docker build --build-arg VERSION="$(git describe --tags --always --dirty)" -t ermite .
6#
7# The modules bnema.dev/ermite-* are private and resolve through git.bnema.dev, which is
8# reachable from the NetBird network only. The build container uses the host's DNS and
9# routes, so on a NetBird host it needs nothing more. Behind a different route (CI), set
10#   --build-arg GIT_REWRITE_BASE=http://git.bnema.dev:8088/ --network host
11# to fetch the modules over that URL instead of https://git.bnema.dev/.
12#
13# Base images are pinned to an Alpine minor release; bump them on purpose.
14
15FROM golang:1.27-alpine3.24 AS build
16RUN apk add --no-cache git
17ENV CGO_ENABLED=0 GOWORK=off GOTOOLCHAIN=local GOPRIVATE=bnema.dev/ermite*
18ARG GIT_REWRITE_BASE=
19RUN if [ -n "$GIT_REWRITE_BASE" ]; then \
20      git config --global url."$GIT_REWRITE_BASE".insteadOf https://git.bnema.dev/; \
21    fi
22WORKDIR /src
23COPY . .
24ARG VERSION=
25RUN --mount=type=cache,target=/go/pkg/mod \
26    --mount=type=cache,target=/root/.cache/go-build \
27    go build -trimpath -buildvcs=false -ldflags "-s -w -X main.stamped=${VERSION}" \
28      -o /out/ermite ./cmd/ermite
29
30FROM alpine:3.24
31# git-daemon provides git-http-backend on alpine. tini runs as PID 1: it forwards signals
32# to ermite and reaps the git processes that detach from pushes (auto maintenance).
33RUN apk add --no-cache git git-daemon ca-certificates tini \
34 && adduser -D -u 10001 -h /home/ermite ermite \
35 && mkdir /data \
36 && chown ermite:ermite /data
37COPY --from=build /out/ermite /usr/local/bin/ermite
38ENV ERMITE_DATA_DIR=/data ERMITE_LOG_FORMAT=json
39USER ermite
40WORKDIR /data
41VOLUME /data
42EXPOSE 7341
43ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/ermite"]
44CMD ["serve"]

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 2

Tags 41

↑↓ moveenter openesc close