Browse Source

[isso] Initial commit

drymer 1 year ago
parent
commit
fa1deae64e
Signed by: drymer <drymer@autistici.org> GPG Key ID: A307D64D5DDFDAAD
2 changed files with 54 additions and 0 deletions
  1. 18
    0
      isso/Dockerfile
  2. 36
    0
      isso/README.md

+ 18
- 0
isso/Dockerfile View File

@@ -0,0 +1,18 @@
1
+FROM alpine:3.7 as builder
2
+
3
+RUN mkdir -p /var/cache/apk && ln -s /var/cache/apk /etc/apk/cache && apk add \
4
+    --update py3-pip gcc musl-dev python3-dev
5
+RUN pip3 install wheel && pip3 wheel --wheel-dir=/root/wheel isso
6
+
7
+FROM alpine:3.7 as production
8
+COPY --from=builder /root/wheel /root/wheel
9
+COPY --from=builder /root/.cache /root/.cache
10
+COPY --from=builder /etc/apk/cache /etc/apk/cache
11
+
12
+RUN apk add --update py3-pip && pip3 install --no-index \
13
+    --find-links=/root/wheel isso
14
+WORKDIR /isso
15
+EXPOSE 8080
16
+RUN rm -rf /root/.cache /etc/apk/cache/* /root/wheel/
17
+ENTRYPOINT ["isso"]
18
+CMD ["--help"]

+ 36
- 0
isso/README.md View File

@@ -0,0 +1,36 @@
1
+# Isso
2
+
3
+Pretty simple, just execute [isso](https://posativ.org/isso/).
4
+
5
+Example configuration file:
6
+
7
+```ini
8
+[general]
9
+dbpath = /isso/comments.db
10
+name = isso
11
+host =
12
+    https://daemons.it
13
+notify = stdout
14
+[server]
15
+listen = http://localhost:8080/
16
+[guard]
17
+enabled = true
18
+ratelimit = 5
19
+direct-reply = 5
20
+reply-to-self = true
21
+require-author = false
22
+require-email = false
23
+[markup]
24
+options = strikethrough, superscript, autolink
25
+[hash]
26
+salt = Eech7co8Ohloopo9Ol6baimi
27
+algorithm = pbkdf2
28
+[moderation]
29
+enabled = false
30
+```
31
+
32
+Example oneliner:
33
+
34
+``` bash
35
+docker run -ti -v `pwd`:/isso -p8080:8080 test/isso -c isso.cfg
36
+```

Loading…
Cancel
Save