first commit

This commit is contained in:
root 2017-11-03 19:35:21 +00:00
commit 25f1752c5e
3 changed files with 85 additions and 0 deletions

35
Dockerfile Normal file
View File

@ -0,0 +1,35 @@
FROM alpine:3.6
ARG ISSO_VER=0.10.5
ENV GID=1000 UID=1000
RUN apk -U upgrade \
&& apk add -t build-dependencies \
python-dev \
libffi-dev \
py2-pip \
build-base \
&& apk add \
python \
py-setuptools \
sqlite \
libressl \
ca-certificates \
su-exec \
tini \
&& pip install --no-cache cffi \
&& pip install --no-cache misaka==1.0.2 \
&& pip install --no-cache "isso==${ISSO_VER}" \
&& apk del build-dependencies \
&& rm -rf /tmp/* /var/cache/apk/* /tmp/* /root/.gnupg /root/.cache/
COPY run.sh /usr/local/bin/run.sh
RUN chmod +x /usr/local/bin/run.sh
EXPOSE 8080
VOLUME /db /config
CMD ["run.sh"]

47
README.md Normal file
View File

@ -0,0 +1,47 @@
## wonderfall/isso
![](https://i.goopics.net/q1.png)
#### What is this?
Isso is a commenting server similar to Disqus. More info on the [official website](https://posativ.org/isso/).
#### Features
- Based on Alpine Linux 3.3.
- Latest Isso installed with `pip`.
#### Build-time variables
- **ISSO_VER** : version of Isso.
#### Environment variables
- **GID** : isso group id *(default : 991)*
- **UID** : isso user id *(default : 991)*
#### Volumes
- **/config** : location of configuration files.
- **/db** : location of SQLite database.
#### Ports
- **8080** [(reverse proxy!)](https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration).
#### Example of simple configuration
Here is the full documentation : https://posativ.org/isso/docs/
```
# /mnt/docker/isso/config/isso.conf
[general]
dbpath = /db/comments.db
host = https://cats.schrodinger.io/
[server]
listen = http://0.0.0.0:8080/
# docker-compose.yml
isso:
image: wonderfall/isso
environment:
- GID=1000
- UID=1000
volumes:
- /mnt/docker/isso/config:/config
- /mnt/docker/isso/db:/db
```

3
run.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
chown -R $UID:$GID /db /config
exec su-exec $UID:$GID /sbin/tini -- isso -c /config/isso.conf run