detached 16c3320

Goreleaser config working. Docker image tested and working.

- Fix: Add CA certificates from BusyBox to Dockerfile
- Add: compose.yml.example with traefik labels and working example
commit
16c3320eec859de76f3559cb67e8a03b56f16e3c
author
bnema · · 2023-10-29 22:30 UTC
committer
bnema · · 2023-10-29 21:27 UTC
parent
8330fc4
signature
unsigned
2 files · +37 -0
M Dockerfile +9 -0
@@ -1,5 +1,14 @@
1+# Fetch the CA certificates from BusyBox
2+FROM busybox:latest as certs
3+RUN mkdir -p /etc/ssl/certs/ && \
4+ wget -O /etc/ssl/certs/ca-certificates.crt https://curl.se/ca/cacert-2023-08-22.pem
5+
6+# Start from scratch
17 FROM scratch
28
9+# Copy CA certificates
10+COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
11+
312 COPY gordon /
413
514 EXPOSE 1323
@@ -1,5 +1,14 @@
1+# Fetch the CA certificates from BusyBox
2+FROM busybox:latest as certs
3+RUN mkdir -p /etc/ssl/certs/ && \
4+ wget -O /etc/ssl/certs/ca-certificates.crt https://curl.se/ca/cacert-2023-08-22.pem
5+
6+# Start from scratch
1 FROM scratch7 FROM scratch
2 8
9+# Copy CA certificates
10+COPY --from=certs /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/
11+
3 COPY gordon /12 COPY gordon /
4 13
5 EXPOSE 132314 EXPOSE 1323
A compose.yml.example +28 -0
@@ -0,0 +1,28 @@
1+version: '3'
2+
3+services:
4+ gordon:
5+ container_name: gordon
6+ image: bnema/gordon:latest
7+ ports:
8+ - "1323"
9+ environment:
10+ SESSION_SECRET: "secret"
11+ DEV: false
12+ USER: "${USER}"
13+ volumes:
14+ - ./data:/data
15+ - .config.yml:/config.yml
16+ - /run/user/1000/podman/podman.sock:/var/run/docker.sock
17+ restart: always
18+ networks:
19+ - traefik
20+ labels:
21+ - "traefik.enable=true"
22+ - "traefik.http.routers.gordon.rule=Host(`gordon.domain.tld)"
23+ - "traefik.http.routers.gordon.entrypoints=websecure"
24+ - "traefik.http.routers.gordon.tls.certresolver=letsencrypt"
25+ - "traefik.http.services.gordon.loadbalancer.server.port=1323"
26+networks:
27+ traefik:
28+ external: true
@@ -0,0 +1,28 @@
1+version: '3'
2+
3+services:
4+ gordon:
5+ container_name: gordon
6+ image: bnema/gordon:latest
7+ ports:
8+ - "1323"
9+ environment:
10+ SESSION_SECRET: "secret"
11+ DEV: false
12+ USER: "${USER}"
13+ volumes:
14+ - ./data:/data
15+ - .config.yml:/config.yml
16+ - /run/user/1000/podman/podman.sock:/var/run/docker.sock
17+ restart: always
18+ networks:
19+ - traefik
20+ labels:
21+ - "traefik.enable=true"
22+ - "traefik.http.routers.gordon.rule=Host(`gordon.domain.tld)"
23+ - "traefik.http.routers.gordon.entrypoints=websecure"
24+ - "traefik.http.routers.gordon.tls.certresolver=letsencrypt"
25+ - "traefik.http.services.gordon.loadbalancer.server.port=1323"
26+networks:
27+ traefik:
28+ external: true

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 7

Tags 106

↑↓ moveenter openesc close