mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-01 22:55:39 +00:00
UNMAINTAINED
This commit is contained in:
37
unmaintained/isso/Dockerfile
Normal file
37
unmaintained/isso/Dockerfile
Normal file
@ -0,0 +1,37 @@
|
||||
FROM alpine:3.6
|
||||
|
||||
ARG ISSO_VER=0.10.6
|
||||
|
||||
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/*
|
||||
|
||||
COPY run.sh /usr/local/bin/run.sh
|
||||
|
||||
RUN chmod +x /usr/local/bin/run.sh
|
||||
|
||||
EXPOSE 8080
|
||||
|
||||
VOLUME /db /config
|
||||
|
||||
LABEL maintainer="Wonderfall <wonderfall@targaryen.house>"
|
||||
|
||||
CMD ["run.sh"]
|
47
unmaintained/isso/README.md
Normal file
47
unmaintained/isso/README.md
Normal file
@ -0,0 +1,47 @@
|
||||
## wonderfall/isso
|
||||
|
||||

|
||||
|
||||
|
||||
#### 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
unmaintained/isso/run.sh
Normal file
3
unmaintained/isso/run.sh
Normal 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
|
Reference in New Issue
Block a user