detached 5278df2

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 public and resolve through the bnema.dev vanity path.
8# GIT_REWRITE_BASE optionally rewrites the git host for builds behind a private route:
9#   --build-arg GIT_REWRITE_BASE=<url> --network host
10#
11# Base images are pinned to an Alpine minor release; bump them on purpose.
12
13FROM golang:1.27-alpine3.24 AS build
14RUN apk add --no-cache git
15ENV CGO_ENABLED=0 GOWORK=off GOTOOLCHAIN=local
16ARG GIT_REWRITE_BASE=
17RUN if [ -n "$GIT_REWRITE_BASE" ]; then \
18      git config --global url."$GIT_REWRITE_BASE".insteadOf https://git.bnema.dev/; \
19    fi
20WORKDIR /src
21COPY . .
22ARG VERSION=
23RUN --mount=type=cache,target=/go/pkg/mod \
24    --mount=type=cache,target=/root/.cache/go-build \
25    go build -trimpath -buildvcs=false -ldflags "-s -w -X bnema.dev/ermite/internal/app.stamped=${VERSION}" \
26      -o /out/ermite ./cmd/ermite
27
28FROM alpine:3.24
29# git-daemon provides git-http-backend on alpine. tini runs as PID 1: it forwards signals
30# to ermite and reaps the git processes that detach from pushes (auto maintenance).
31RUN apk add --no-cache git git-daemon ca-certificates tini \
32 && adduser -D -u 10001 -h /home/ermite ermite \
33 && mkdir /data \
34 && chown ermite:ermite /data
35COPY --from=build /out/ermite /usr/local/bin/ermite
36ENV ERMITE_DATA_DIR=/data ERMITE_LOG_FORMAT=json
37USER ermite
38WORKDIR /data
39VOLUME /data
40EXPOSE 7341
41ENTRYPOINT ["/sbin/tini", "--", "/usr/local/bin/ermite"]
42CMD ["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 45

↑↓ moveenter openesc close