From 62d689c54b579c435ad5a793176611153569ccf6 Mon Sep 17 00:00:00 2001 From: Roman Hoellen Date: Mon, 4 Dec 2017 14:55:46 +0100 Subject: [PATCH] UNMAINTENED --- cowrie/Dockerfile | 77 ----------------- cowrie/README.md | 60 ------------- cowrie/run.sh | 12 --- freshrss/Dockerfile | 30 ------- freshrss/README.md | 24 ------ freshrss/rootfs/etc/s6.d/cron/run | 6 -- .../rootfs/nginx/sites-enabled/nginx.conf | 33 -------- freshrss/rootfs/usr/local/bin/run.sh | 8 -- ghost/Dockerfile | 43 ---------- ghost/README.md | 44 ---------- ghost/rootfs/etc/s6.d/.s6-svscan/finish | 2 - ghost/rootfs/etc/s6.d/ghost/run | 5 -- ghost/rootfs/usr/local/bin/run.sh | 47 ----------- ghost/rootfs/usr/local/etc/disqus.conf | 16 ---- ghost/rootfs/usr/local/etc/ghost.example.conf | 21 ----- ghost/rootfs/usr/local/etc/isso.conf | 7 -- kippo-graph/Dockerfile | 47 ----------- kippo-graph/README.md | 29 ------- kippo-graph/nginx.conf | 84 ------------------- kippo-graph/php-fpm.conf | 11 --- kippo-graph/run.sh | 3 - kippo-graph/s6.d/.s6-svscan/finish | 3 - kippo-graph/s6.d/nginx/run | 2 - kippo-graph/s6.d/php/run | 2 - mediawiki/Dockerfile | 38 --------- mediawiki/README.md | 69 --------------- .../rootfs/nginx/sites-enabled/nginx.conf | 43 ---------- mediawiki/rootfs/php/conf.d/apcu.ini | 4 - mediawiki/rootfs/usr/local/bin/run.sh | 15 ---- parsoid/Dockerfile | 28 ------- parsoid/README.md | 28 ------- parsoid/rootfs/etc/s6.d/.s6-svscan/finish | 2 - parsoid/rootfs/etc/s6.d/parsoid/run | 3 - parsoid/rootfs/usr/local/bin/run.sh | 19 ----- parsoid/rootfs/usr/local/etc/disqus.conf | 16 ---- .../rootfs/usr/local/etc/ghost.example.conf | 21 ----- parsoid/rootfs/usr/local/etc/isso.conf | 7 -- pgbouncer/Dockerfile | 16 ---- pgbouncer/README.md | 10 --- pgbouncer/run.sh | 4 - 40 files changed, 939 deletions(-) delete mode 100644 cowrie/Dockerfile delete mode 100644 cowrie/README.md delete mode 100644 cowrie/run.sh delete mode 100644 freshrss/Dockerfile delete mode 100644 freshrss/README.md delete mode 100644 freshrss/rootfs/etc/s6.d/cron/run delete mode 100644 freshrss/rootfs/nginx/sites-enabled/nginx.conf delete mode 100644 freshrss/rootfs/usr/local/bin/run.sh delete mode 100644 ghost/Dockerfile delete mode 100644 ghost/README.md delete mode 100644 ghost/rootfs/etc/s6.d/.s6-svscan/finish delete mode 100644 ghost/rootfs/etc/s6.d/ghost/run delete mode 100644 ghost/rootfs/usr/local/bin/run.sh delete mode 100644 ghost/rootfs/usr/local/etc/disqus.conf delete mode 100644 ghost/rootfs/usr/local/etc/ghost.example.conf delete mode 100644 ghost/rootfs/usr/local/etc/isso.conf delete mode 100644 kippo-graph/Dockerfile delete mode 100644 kippo-graph/README.md delete mode 100644 kippo-graph/nginx.conf delete mode 100644 kippo-graph/php-fpm.conf delete mode 100644 kippo-graph/run.sh delete mode 100644 kippo-graph/s6.d/.s6-svscan/finish delete mode 100644 kippo-graph/s6.d/nginx/run delete mode 100644 kippo-graph/s6.d/php/run delete mode 100644 mediawiki/Dockerfile delete mode 100644 mediawiki/README.md delete mode 100644 mediawiki/rootfs/nginx/sites-enabled/nginx.conf delete mode 100644 mediawiki/rootfs/php/conf.d/apcu.ini delete mode 100644 mediawiki/rootfs/usr/local/bin/run.sh delete mode 100644 parsoid/Dockerfile delete mode 100644 parsoid/README.md delete mode 100644 parsoid/rootfs/etc/s6.d/.s6-svscan/finish delete mode 100644 parsoid/rootfs/etc/s6.d/parsoid/run delete mode 100644 parsoid/rootfs/usr/local/bin/run.sh delete mode 100644 parsoid/rootfs/usr/local/etc/disqus.conf delete mode 100644 parsoid/rootfs/usr/local/etc/ghost.example.conf delete mode 100644 parsoid/rootfs/usr/local/etc/isso.conf delete mode 100644 pgbouncer/Dockerfile delete mode 100644 pgbouncer/README.md delete mode 100644 pgbouncer/run.sh diff --git a/cowrie/Dockerfile b/cowrie/Dockerfile deleted file mode 100644 index 16964ee..0000000 --- a/cowrie/Dockerfile +++ /dev/null @@ -1,77 +0,0 @@ -FROM alpine:edge - -ARG MPFR_VERSION=3.1.5 -ARG MPC_VERSION=1.0.3 - -ARG GPG_MPFR="07F3 DBBE CC1A 3960 5078 094D 980C 1976 98C3 739D" -ARG GPG_MPC="AD17 A21E F8AE D8F1 CC02 DBD9 F7D5 C9BF 765C 61E3" -ARG SHA1_MPC="b8be66396c726fdc36ebb0f692ed8a8cca3bcc66" - -ENV UID=991 GID=991 - -RUN BUILD_DEPS=" \ - build-base \ - libtool \ - libffi-dev \ - libressl-dev \ - python-dev \ - gmp-dev \ - mariadb-dev \ - py2-pip \ - tar \ - gnupg" \ - && apk -U upgrade && apk add \ - ${BUILD_DEPS} \ - libffi \ - gmp \ - libressl \ - python \ - py-setuptools \ - openssh-client \ - mariadb-client-libs \ - tini \ - su-exec \ - && cd /tmp && wget -q http://www.mpfr.org/mpfr-current/mpfr-${MPFR_VERSION}.tar.gz \ - && echo "Verifying authenticity of mpfr-${MPFR_VERSION}.tar.gz..." \ - && wget -q http://www.mpfr.org/mpfr-current/mpfr-${MPFR_VERSION}.tar.gz.asc \ - && gpg --recv-keys 98C3739D \ - && FINGERPRINT="$(LANG=C gpg --verify mpfr-${MPFR_VERSION}.tar.gz.asc mpfr-${MPFR_VERSION}.tar.gz 2>&1 \ - | sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \ - && if [ -z "${FINGERPRINT}" ]; then echo "Warning! Invalid GPG signature!" && exit 1; fi \ - && if [ "${FINGERPRINT}" != "${GPG_MPFR}" ]; then echo "Warning! Wrong GPG fingerprint!" && exit 1; fi \ - && echo "All seems good, now unpacking mpfr-${MPFR_VERSION}.tar.gz..." \ - && tar xzf mpfr-${MPFR_VERSION}.tar.gz && cd mpfr-${MPFR_VERSION} \ - && ./configure && make && make install \ - && cd /tmp && wget -q ftp://ftp.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz \ - && echo "Verifying both integrity and authenticity of mpc-${MPC_VERSION}.tar.gz..." \ - && CHECKSUM=$(sha1sum mpc-${MPC_VERSION}.tar.gz | awk '{print $1}') \ - && if [ "${CHECKSUM}" != "${SHA1_MPC}" ]; then echo "Warning! Checksum does not match!" && exit 1; fi \ - && wget -q ftp://ftp.gnu.org/gnu/mpc/mpc-${MPC_VERSION}.tar.gz.sig \ - && gpg --recv-keys 0xF7D5C9BF765C61E3 \ - && FINGERPRINT="$(LANG=C gpg --verify mpc-${MPC_VERSION}.tar.gz.sig mpc-${MPC_VERSION}.tar.gz 2>&1 \ - | sed -n "s#Primary key fingerprint: \(.*\)#\1#p")" \ - && if [ -z "${FINGERPRINT}" ]; then echo "Warning! Invalid GPG signature!" && exit 1; fi \ - && if [ "${FINGERPRINT}" != "${GPG_MPC}" ]; then echo "Warning! Wrong GPG fingerprint!" && exit 1; fi \ - && echo "All seems good, now unpacking mpc-${MPC_VERSION}.tar.gz..." \ - && tar xzf mpc-${MPC_VERSION}.tar.gz && cd mpc-${MPC_VERSION} \ - && ./configure --with-mpfr-lib=/usr/local/lib --with-mpfr-include=/usr/local/include \ - && make && make install \ - && mkdir /cowrie && cd /cowrie \ - && wget -qO- https://github.com/micheloosterhof/cowrie/archive/master.tar.gz | tar xz --strip 1 \ - && pip install --no-cache -r requirements.txt \ - && pip install --no-cache mysql-python \ - && mv cowrie.cfg.dist cowrie.cfg \ - && apk del ${BUILD_DEPS} \ - && rm -rf /var/cache/apk/* /tmp/* /root/.gnupg - -COPY run.sh /usr/local/bin/run.sh - -RUN chmod +x /usr/local/bin/run.sh - -VOLUME /cowrie/log /cowrie/dl /custom - -EXPOSE 2222 - -LABEL maintainer="Wonderfall " - -CMD ["run.sh"] diff --git a/cowrie/README.md b/cowrie/README.md deleted file mode 100644 index b625302..0000000 --- a/cowrie/README.md +++ /dev/null @@ -1,60 +0,0 @@ -### wonderfall/cowrie - -#### What is this? -Cowrie is a medium interaction SSH honeypot designed to log brute force attacks and the shell interaction performed by the attacker. Cowrie is based on Kippo. - -#### Build-time variables -- **MPFR_VERSION** : GNU MPFR version. -- **MPC_VERSION** : GNU MPC version. -- **GPG_** : fingerprints of signing keys. -- **SHA_** : fingerprints of tarballs - -#### Environment variables -- **UID** *(default : 991)* -- **GID** *(default : 991)* - -#### How to configure -You should provide your own configuration file from this base : https://raw.githubusercontent.com/micheloosterhof/cowrie/master/cowrie.cfg.dist -You can mount this single file to your Docker container. - -#### Volumes -- **/cowrie/dl** : where downloads are stored. -- **/cowrie/log** : cowrie and tty sessions logs. -- **/cowrie/cowrie.cfg** : cowrie configuration file. **Provide yours!** -- **/custom** : customize cowrie structure with your own files - -#### Docker compose (example) -``` -cowrie: - image: wonderfall/cowrie - links: ### MySQL output - - cowrie-db:cowrie-db ### MySQL output - ports: - - "2222:2222" - volumes: - - /mnt/cowrie/dl:/cowrie/dl - - /mnt/cowrie/log:/cowrie/log - - /mnt/cowrie/custom:/custom - - /mnt/cowrie/cowrie.cfg:/cowrie/cowrie.cfg - environment: - - GID=1000 - - UID=1000 - -### MySQL output -# First, you'll have to initialise tables with a .sql file -# mkdir -p /mnt/cowrie/sql -# wget https://raw.githubusercontent.com/micheloosterhof/cowrie/master/doc/sql/mysql.sql -P /mnt/cowrie/sql/cowrie.sql -# It needs also to be configured in the cowrie.cfg file - -cowrie-db: - image: mariadb:10 - volumes: - - /mnt/cowrie/db:/var/lib/mysql - - /mnt/cowrie/sql:/docker-entrypoint-initdb.d - environment: - - MYSQL_ROOT_PASSWORD=supersecretpassword - - MYSQL_DATABASE=cowrie - - MYSQL_USER=cowrie - - MYSQL_PASSWORD=supersecretpassword -``` - diff --git a/cowrie/run.sh b/cowrie/run.sh deleted file mode 100644 index e4321e0..0000000 --- a/cowrie/run.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh -cd /cowrie - -rm twistd.pid &>/dev/null -mkdir -p /cowrie/log/tty &>/dev/null -cp -R /custom/* /cowrie &>/dev/null -chown -R $UID:$GID /cowrie - -COWRIEDIR=$(dirname $0) -export PYTHONPATH=${PYTHONPATH}:${COWRIEDIR} - -exec su-exec $UID:$GID /sbin/tini -- twistd -n -l /cowrie/log/cowrie.log cowrie diff --git a/freshrss/Dockerfile b/freshrss/Dockerfile deleted file mode 100644 index 75e2d5f..0000000 --- a/freshrss/Dockerfile +++ /dev/null @@ -1,30 +0,0 @@ -FROM wonderfall/nginx-php:7.1 - -ARG FRESHRSS_VER=1.8.0 - -ENV UID=991 GID=991 \ - UPLOAD_MAX_SIZE=10M \ - MEMORY_LIMIT=128M \ - CRON_PERIOD=30m - -RUN apk -U add --no-cache \ - tar \ - libressl \ - ca-certificates \ - && mkdir freshrss && cd freshrss \ - && wget -qO- https://github.com/FreshRSS/FreshRSS/archive/${FRESHRSS_VER}.tar.gz | tar xz --strip 1 \ - && mv data data_tmp - -COPY rootfs / - -RUN chmod +x /usr/local/bin/run.sh /etc/s6.d/*/* /etc/s6.d/.s6-svscan/* - -VOLUME /freshrss/data /php/session - -EXPOSE 8888 - -LABEL maintainer="Wonderfall " \ - description="A free, self-hostable aggregator" \ - version="FreshRSS ${FRESHRSS_VER}" - -CMD ["run.sh"] diff --git a/freshrss/README.md b/freshrss/README.md deleted file mode 100644 index 82bdf7f..0000000 --- a/freshrss/README.md +++ /dev/null @@ -1,24 +0,0 @@ -## wonderfall/freshrss - -A free, self-hostable aggregator : https://github.com/FreshRSS/FreshRSS - -#### Features -- Based on Alpine Linux (wonderfall/nginx-php image) -- Bundled with nginx and PHP7.1. -- Automatic feed update (frequency at 30 minutes by default) - -#### Build-time variables -- **FRESHRSS_VER** : version of FreshRSS - -#### Environment variables -- **UID** : user id -- **GID** : group id -- **MEMORY_LIMIT** : php memory limit *(default : 128M)* -- **UPLOAD_MAX_SIZE** : maximum upload size *(default : 10M)* -- **CRON_PERIOD** : feed update frequency *(default : 30m)* - -#### Volumes -- **/freshrss/data** - -#### Ports -- **8888** [(reverse proxy!)](https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration) diff --git a/freshrss/rootfs/etc/s6.d/cron/run b/freshrss/rootfs/etc/s6.d/cron/run deleted file mode 100644 index 584e453..0000000 --- a/freshrss/rootfs/etc/s6.d/cron/run +++ /dev/null @@ -1,6 +0,0 @@ -#!/bin/sh - -while true; do - php -f /freshrss/app/actualize_script.php - sleep -done diff --git a/freshrss/rootfs/nginx/sites-enabled/nginx.conf b/freshrss/rootfs/nginx/sites-enabled/nginx.conf deleted file mode 100644 index 69977bc..0000000 --- a/freshrss/rootfs/nginx/sites-enabled/nginx.conf +++ /dev/null @@ -1,33 +0,0 @@ -server { - listen 8888; - root /freshrss; - index index.php index.html; - - location ~* \.(jpg|jpeg|gif|css|png|js|map|woff|woff2|ttf|svg|eot)$ { - expires 30d; - access_log off; - } - - location ~ ^/(data|cfg|tmp) { - deny all; - } - - location ~* /(.*)\.(?:markdown|md|twig|yaml|yml|ht|htaccess|ini)$ { - deny all; - } - - location ~ /\. { - deny all; - } - - location / { - try_files $uri $uri/ /index.php; - } - - location ~ \.php$ { - fastcgi_index index.php; - fastcgi_pass unix:/php/run/php-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include /nginx/conf/fastcgi_params; - } -} diff --git a/freshrss/rootfs/usr/local/bin/run.sh b/freshrss/rootfs/usr/local/bin/run.sh deleted file mode 100644 index e61bfaa..0000000 --- a/freshrss/rootfs/usr/local/bin/run.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/bin/sh -sed -i -e "s//$UPLOAD_MAX_SIZE/g" /nginx/conf/nginx.conf /php/etc/php-fpm.conf \ - -e "s//$MEMORY_LIMIT/g" /php/etc/php-fpm.conf \ - -e "s//$CRON_PERIOD/g" /etc/s6.d/cron/run - -[ ! "$(ls -A /freshrss/data)" ] && cp -R /freshrss/data_tmp/* /freshrss/data/ -chown -R $UID:$GID /freshrss /nginx /php /tmp /etc/s6.d -exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d diff --git a/ghost/Dockerfile b/ghost/Dockerfile deleted file mode 100644 index 84bd2c7..0000000 --- a/ghost/Dockerfile +++ /dev/null @@ -1,43 +0,0 @@ -FROM alpine:3.6 - -ARG VERSION=1.14.0 - -ENV GHOST_NODE_VERSION_CHECK=false \ - NODE_ENV=production \ - GID=991 UID=991 \ - ADDRESS=https://my-ghost-blog.com \ - ENABLE_ISSO=False \ - ISSO_HOST=isso.domain.tld \ - ISSO_AVATAR=false \ - ISSO_VOTE=false - -WORKDIR /ghost - -RUN apk -U --no-cache add \ - bash \ - ca-certificates \ - grep \ - libressl \ - nodejs-current \ - nodejs-current-npm \ - s6 \ - su-exec \ - vim \ - && wget -q https://github.com/TryGhost/Ghost/releases/download/${VERSION}/Ghost-${VERSION}.zip -P /tmp \ - && unzip -q /tmp/Ghost-${VERSION}.zip -d /ghost \ - && npm install --production \ - && mv content/themes/casper casper - -COPY rootfs / - -RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/* - -EXPOSE 2368 - -VOLUME /ghost/content - -LABEL description="Ghost CMS ${VERSION}" \ - maintainer="Wonderfall " - -ENTRYPOINT ["run.sh"] -CMD ["/bin/s6-svscan", "/etc/s6.d"] diff --git a/ghost/README.md b/ghost/README.md deleted file mode 100644 index 1ed3d58..0000000 --- a/ghost/README.md +++ /dev/null @@ -1,44 +0,0 @@ -## wonderfall/ghost - -![](https://i.goopics.net/lt.png) - -**Breaking changes if you're upgrading from 0.x. Please export your current data, and import them again in a new 1.x blog. You also have to move your images to the new volume if you want to keep them. Disqus is also not supported, please move to Isso, a much better comments system. Sorry for the mess!** - -#### What is this? What features? -- A **simple** Ghost CMS build made for production. -- Based on Alpine Linux so it's lightweight! -- Bundled with latest node.js available (version check is disabled). -- Offers Isso integration. - -#### Build-time variables -- **VERSION** : version of Ghost. - -#### Environment variables -- **GID** : ghost user id *(default : 991)* -- **UID** : ghost group id *(default : 991)* -- **ADDRESS** : your domain (with *http(s)://*) *(default : https://my-ghost-blog.com)* -- **ENABLE_ISSO** : enables Isso support if set to *True* *(default : False)* -- **ISSO_HOST**, **ISSO_AVATAR**, **ISSO_VOTE** : Isso settings (*True* or *False*) - -#### Volumes -- **/ghost/content** : contents of your blog - -### Ports -- **2368** [(reverse proxy!)](https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration) - -### How to configure? -Everything you need is in `/ghost/content/ghost.conf` (also mounted on your host...). - -### docker-compose.yml sample - -``` -ghost-myblog: - image: wonderfall/ghost:1 - container_name: ghost-myblog - environment: - - UID=8100 - - GID=8100 - - ADDRESS=https://myblog.com - volumes: - - /mnt/docker/myblog:/ghost/content -``` diff --git a/ghost/rootfs/etc/s6.d/.s6-svscan/finish b/ghost/rootfs/etc/s6.d/.s6-svscan/finish deleted file mode 100644 index 039e4d0..0000000 --- a/ghost/rootfs/etc/s6.d/.s6-svscan/finish +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exit 0 diff --git a/ghost/rootfs/etc/s6.d/ghost/run b/ghost/rootfs/etc/s6.d/ghost/run deleted file mode 100644 index d24cf26..0000000 --- a/ghost/rootfs/etc/s6.d/ghost/run +++ /dev/null @@ -1,5 +0,0 @@ -#!/bin/sh -cd /ghost -NODE_ENV=development node_modules/.bin/knex-migrator init -NODE_ENV=development node_modules/.bin/knex-migrator migrate -exec npm start diff --git a/ghost/rootfs/usr/local/bin/run.sh b/ghost/rootfs/usr/local/bin/run.sh deleted file mode 100644 index a6d86ea..0000000 --- a/ghost/rootfs/usr/local/bin/run.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -echo -echo ">>> wonderfall/ghost container <<<" -echo - -echo "> Initializing content folder..." -cd content -mkdir apps data images themes logs adapters &>/dev/null -rm -rf /ghost/content/themes/casper &>/dev/null -cp -r /ghost/casper themes/casper &>/dev/null -cd /ghost - -if [ ! -f /ghost/content/ghost.conf ]; then - echo - echo "INFO : No configuration file was provided, an example will be used" - echo " You can access and modify it in the volume you mounted" - echo " Restart in order to apply your changes!" - echo - mv /usr/local/etc/ghost.example.conf /ghost/content/ghost.conf -fi - -if [ ! -f /ghost/config.production.json ]; then - ln -s content/ghost.conf config.production.json -fi - -echo "> Applying preferences..." - -sed -i -e "s|https://my-ghost-blog.com|${ADDRESS}|g" /ghost/content/ghost.conf - -if [ "$ENABLE_ISSO" == "True" ] && ! grep -q 'isso' /ghost/content/themes/casper/post.hbs; then - cd /usr/local/etc - sed -i -e "/\/author/r isso.conf" /ghost/content/themes/casper/post.hbs - sed -i -e '/isso-thread/{n;d}' /ghost/content/themes/casper/post.hbs - sed -i -e "s//$ISSO_HOST/g" \ - -e "s//$ISSO_AVATAR/g" \ - -e "s//$ISSO_VOTE/g" /ghost/content/themes/casper/post.hbs -fi - -echo "> Updating permissions..." -chown -R ${UID}:${GID} /ghost /etc/s6.d - -echo "> Executing process..." -if [ '$@' == '' ]; then - exec su-exec ${UID}:${GID} /bin/s6-svscan /etc/s6.d -else - exec su-exec ${UID}:${GID} "$@" -fi diff --git a/ghost/rootfs/usr/local/etc/disqus.conf b/ghost/rootfs/usr/local/etc/disqus.conf deleted file mode 100644 index 9b20532..0000000 --- a/ghost/rootfs/usr/local/etc/disqus.conf +++ /dev/null @@ -1,16 +0,0 @@ - -
- - -comments powered by Disqus - diff --git a/ghost/rootfs/usr/local/etc/ghost.example.conf b/ghost/rootfs/usr/local/etc/ghost.example.conf deleted file mode 100644 index 2b01024..0000000 --- a/ghost/rootfs/usr/local/etc/ghost.example.conf +++ /dev/null @@ -1,21 +0,0 @@ -{ - "url": "https://my-ghost-blog.com", - - "server": { - "host": "0.0.0.0", - "port": "2368" - }, - - "database": { - "client": "sqlite3", - "connection": { - "filename": "content/data/ghost-dev.db" - }, - "useNullAsDefault": true, - "debug": false - }, - - "mail": { - "transport": "Direct" - } -} diff --git a/ghost/rootfs/usr/local/etc/isso.conf b/ghost/rootfs/usr/local/etc/isso.conf deleted file mode 100644 index 4287ebc..0000000 --- a/ghost/rootfs/usr/local/etc/isso.conf +++ /dev/null @@ -1,7 +0,0 @@ - - - -
diff --git a/kippo-graph/Dockerfile b/kippo-graph/Dockerfile deleted file mode 100644 index 70443d0..0000000 --- a/kippo-graph/Dockerfile +++ /dev/null @@ -1,47 +0,0 @@ -FROM alpine:edge - -ENV GID=991 UID=991 - -RUN echo "@testing https://nl.alpinelinux.org/alpine/edge/testing" >> /etc/apk/repositories \ - && BUILD_DEPS="tar libressl ca-certificates" \ - && apk -U upgrade && apk add \ - $BUILD_DEPS \ - nginx \ - s6 \ - su-exec \ - coreutils \ - bind-tools \ - php7-fpm@testing \ - php7-mysqlnd@testing \ - php7-pdo@testing \ - php7-pdo_mysql@testing \ - php7-openssl@testing \ - php7-gd@testing \ - php7-curl@testing \ - php7-phar@testing \ - php7-dom@testing \ - && mkdir kippo-graph && cd kippo-graph \ - && wget -qO- https://github.com/ikoniaris/kippo-graph/archive/master.tar.gz | tar xz --strip 1 \ - && chmod 777 generated-graphs \ - && mv config.php.dist config.php \ - && rm /kippo-graph/include/maxmind/GeoLite2-City.mmdb /kippo-graph/include/maxmind/geoip2.phar \ - && wget -q https://geolite.maxmind.com/download/geoip/database/GeoLite2-City.mmdb.gz -P /kippo-graph/include/maxmind \ - && gzip -d /kippo-graph/include/maxmind/GeoLite2-City.mmdb.gz \ - && wget -q https://github.com/maxmind/GeoIP2-php/releases/download/v2.4.5/geoip2.phar -P /kippo-graph/include/maxmind \ - && apk del $BUILD_DEPS \ - && rm -f /var/cache/apk/* - -COPY nginx.conf /etc/nginx/nginx.conf -COPY php-fpm.conf /etc/php7/php-fpm.conf -COPY run.sh /usr/local/bin/run.sh -COPY s6.d /etc/s6.d - -RUN chmod +x /usr/local/bin/run.sh /etc/s6.d/*/* /etc/s6.d/.s6-svscan/* - -VOLUME /kippo-graph/generated-graphs - -EXPOSE 8888 - -LABEL maintainer="Wonderfall " - -CMD ["run.sh"] diff --git a/kippo-graph/README.md b/kippo-graph/README.md deleted file mode 100644 index 2689b46..0000000 --- a/kippo-graph/README.md +++ /dev/null @@ -1,29 +0,0 @@ -### wonderfall/kippo-graph - -![kippo-graph](https://github.com/ikoniaris/kippo-graph/blob/master/images/kippo-graph-img.png) - -#### What is this? -Kippo-Graph is a full featured script to visualize statistics for a Kippo based SSH honeypot. - -#### Environment variables -- **UID** *(default : 991)* -- **GID** *(default : 991)* - -#### How to configure -You should provide your own configuration file from this base : https://github.com/ikoniaris/kippo-graph/blob/master/config.php.dist -You can mount this single file to your Docker container. - -#### Docker compose (example) -``` -kippo-graph: - image: wonderfall/kippo-graph - links: - - cowrie-db:cowrie-db - volumes: - - /mnt/kippo-graph/config.php:/kippo-graph/config.php - - /mnt/cowrie/log:/opt/cowrie/log - environment: - - GID=991 - - UID=991 -``` - diff --git a/kippo-graph/nginx.conf b/kippo-graph/nginx.conf deleted file mode 100644 index 100f66a..0000000 --- a/kippo-graph/nginx.conf +++ /dev/null @@ -1,84 +0,0 @@ -worker_processes auto; -pid /tmp/nginx.pid; -daemon off; - -events { - worker_connections 1024; - use epoll; -} - -http { - include /etc/nginx/mime.types; - default_type application/octet-stream; - - access_log off; - error_log /tmp/ngx_error.log error; - - sendfile on; - keepalive_timeout 15; - keepalive_disable msie6; - keepalive_requests 100; - tcp_nopush on; - tcp_nodelay on; - server_tokens off; - - fastcgi_temp_path /tmp/fastcgi 1 2; - client_body_temp_path /tmp/client_body 1 2; - proxy_temp_path /tmp/proxy 1 2; - uwsgi_temp_path /tmp/uwsgi 1 2; - scgi_temp_path /tmp/scgi 1 2; - - gzip on; - gzip_comp_level 5; - gzip_min_length 512; - gzip_buffers 4 8k; - gzip_proxied any; - gzip_vary on; - gzip_disable "msie6"; - gzip_types - text/css - text/javascript - text/xml - text/plain - text/x-component - application/javascript - application/x-javascript - application/json - application/xml - application/rss+xml - application/vnd.ms-fontobject - font/truetype - font/opentype - image/svg+xml; - - server { - listen 8888; - root /kippo-graph; - index index.php index.html; - - location ~ ^/(data|cfg|tmp) { - deny all; - } - - location ~* /(.*)\.(?:markdown|md|twig|yaml|yml|ht|htaccess|ini)$ { - deny all; - } - - location ~ /\. { - deny all; - } - - location / { - try_files $uri $uri/ /index.php; - } - - location ~ \.php$ { - fastcgi_index index.php; - fastcgi_pass unix:/tmp/php-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include /etc/nginx/fastcgi_params; - } - - } - -} diff --git a/kippo-graph/php-fpm.conf b/kippo-graph/php-fpm.conf deleted file mode 100644 index f636044..0000000 --- a/kippo-graph/php-fpm.conf +++ /dev/null @@ -1,11 +0,0 @@ -[global] -daemonize = no - -[www] -listen = /tmp/php-fpm.sock -pm = dynamic -pm.max_children = 5 -pm.start_servers = 2 -pm.min_spare_servers = 1 -pm.max_spare_servers = 3 -chdir = / diff --git a/kippo-graph/run.sh b/kippo-graph/run.sh deleted file mode 100644 index 97e5f9a..0000000 --- a/kippo-graph/run.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -chown -R $UID:$GID /kippo-graph /etc/nginx /etc/php7 /var/log /var/lib/nginx /tmp /etc/s6.d -exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d diff --git a/kippo-graph/s6.d/.s6-svscan/finish b/kippo-graph/s6.d/.s6-svscan/finish deleted file mode 100644 index c52d3c2..0000000 --- a/kippo-graph/s6.d/.s6-svscan/finish +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh - -exit 0 diff --git a/kippo-graph/s6.d/nginx/run b/kippo-graph/s6.d/nginx/run deleted file mode 100644 index eaf8049..0000000 --- a/kippo-graph/s6.d/nginx/run +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec nginx diff --git a/kippo-graph/s6.d/php/run b/kippo-graph/s6.d/php/run deleted file mode 100644 index e238021..0000000 --- a/kippo-graph/s6.d/php/run +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exec php-fpm7 diff --git a/mediawiki/Dockerfile b/mediawiki/Dockerfile deleted file mode 100644 index b563e16..0000000 --- a/mediawiki/Dockerfile +++ /dev/null @@ -1,38 +0,0 @@ -FROM wonderfall/nginx-php:7.1 - -ARG MEDIAWIKI_VER=1.29 -ARG SUB_VERSION=1 - -ENV UID=991 GID=991 \ - UPLOAD_MAX_SIZE=10M \ - MEMORY_LIMIT=128M - -RUN apk -U add \ - tar \ - libressl \ - ca-certificates \ - git \ - lua \ - coreutils \ - diffutils \ - build-base \ - autoconf \ - && pecl install apcu \ - && mkdir mediawiki && cd mediawiki \ - && wget -qO- https://releases.wikimedia.org/mediawiki/${MEDIAWIKI_VER}/mediawiki-${MEDIAWIKI_VER}.${SUB_VERSION}.tar.gz | tar xz --strip 1 \ - && apk del build-base autoconf \ - && rm -rf /var/cache/apk/* - -COPY rootfs / - -RUN chmod +x /usr/local/bin/run.sh /etc/s6.d/*/* /etc/s6.d/.s6-svscan/* - -VOLUME /config /skins /extensions /mediawiki/images /php/session - -EXPOSE 8888 - -LABEL maintainer="Wonderfall " \ - description="MediaWiki is a free software open source wiki package written in PHP" \ - version="MediaWiki ${MEDIAWIKI_VER}.${SUB_VERSION}" - -CMD ["run.sh"] diff --git a/mediawiki/README.md b/mediawiki/README.md deleted file mode 100644 index c6b64cd..0000000 --- a/mediawiki/README.md +++ /dev/null @@ -1,69 +0,0 @@ -## wonderfall/mediawiki - -Host your own Wiki! - -#### Features -- Based on Alpine Linux (wonderfall/nginx-php image) -- Bundled with nginx and PHP7.1. - -#### Build-time variables -- **MEDIAWIKI_VER** : Mediawiki version -- **SUB_VERSION** : Mediawiki subversion - -#### Environment variables -- **UID** : privatebin user id -- **GID** : privatebin group id -- **MEMORY_LIMIT** : php memorny limit *(default : 128M)* -- **UPLOAD_MAX_SIZE** : maximum upload size *(default : 10M)* - -#### Volumes -- /mediawiki/images -- /extensions -- /skins -- /config -- /mediawiki/custom - -#### Ports -- **8888** [(reverse proxy!)](https://github.com/hardware/mailserver/wiki/Reverse-proxy-configuration) - -#### docker-compose.yml sample - -``` -mywiki: - image: wonderfall/mediawiki - container_name: mywiki - links: - - mywiki-db:mywiki-db - - mywiki-parsoid:mywiki-parsoid - environment: - - UPLOAD_MAX_SIZE=20M - - MEMORY_LIMIT=512M - - UID=1668 - - GID=1668 - volumes: - - /mnt/mywiki/images:/mediawiki/images - - /mnt/mywiki/extensions:/extensions - - /mnt/mywiki/skins:/skins - - /mnt/mywiki/config:/config - - /mnt/mywiki/custom:/mediawiki/custom - -mywiki-db: - image: mariadb:10.1 - container_name: mywiki-db - volumes: - - /mnt/mywiki/db:/var/lib/mysql - environment: - - MYSQL_ROOT_PASSWORD=supersecret - - MYSQL_DATABASE=mywiki - - MYSQL_USER=mywiki - - MYSQL_PASSWORD=supersecret - -mywiki-parsoid: - image: wonderfall/parsoid - container_name: mywiki-parsoid - environment: - - UID=1669 - - GID=1669 - - ADDRESS=https://wiki.domain.com/ - - DOMAIN=mywiki-parsoid -``` diff --git a/mediawiki/rootfs/nginx/sites-enabled/nginx.conf b/mediawiki/rootfs/nginx/sites-enabled/nginx.conf deleted file mode 100644 index 7db4b77..0000000 --- a/mediawiki/rootfs/nginx/sites-enabled/nginx.conf +++ /dev/null @@ -1,43 +0,0 @@ -server { - listen 8888; - root /mediawiki; - index index.php index.html; - - client_body_timeout 60; - - location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { - try_files $uri /index.php; - expires max; - log_not_found off; - } - - location ^~ /cache/ { - deny all; - } - - location /dumps { - root /mediawiki/local; - } - - location / { - try_files $uri $uri/ @rewrite; - } - - location @rewrite { - rewrite ^/(.*)$ /index.php; - } - - location ^~ /maintenance/ { - return 403; - } - - location ^~ /images/ {} - - location ~ \.php$ { - fastcgi_index index.php; - fastcgi_pass unix:/php/run/php-fpm.sock; - fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; - include /nginx/conf/fastcgi_params; - try_files $uri @rewrite; - } -} diff --git a/mediawiki/rootfs/php/conf.d/apcu.ini b/mediawiki/rootfs/php/conf.d/apcu.ini deleted file mode 100644 index 1bf9b49..0000000 --- a/mediawiki/rootfs/php/conf.d/apcu.ini +++ /dev/null @@ -1,4 +0,0 @@ -extension=apcu.so -apc.enabled=1 -apc.shm_size= -apc.ttl=7200 diff --git a/mediawiki/rootfs/usr/local/bin/run.sh b/mediawiki/rootfs/usr/local/bin/run.sh deleted file mode 100644 index 4755696..0000000 --- a/mediawiki/rootfs/usr/local/bin/run.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/sh -sed -i -e "s//$UPLOAD_MAX_SIZE/g" /nginx/conf/nginx.conf /php/etc/php-fpm.conf \ - -e "s//$MEMORY_LIMIT/g" /php/etc/php-fpm.conf \ - -e "s//$APC_SHM_SIZE/g" /php/conf.d/apcu.ini - -chown -R $UID:$GID /mediawiki /nginx /php /tmp /etc/s6.d - -if [ -f /config/LocalSettings.php ] && [ ! -f /mediawiki/LocalSettings.php ]; then - ln -s /config/LocalSettings.php /mediawiki/LocalSettings.php -fi - -cp -r /skins/* /mediawiki/skins/ -cp -r /extensions/* /mediawiki/extensions/ - -exec su-exec $UID:$GID /bin/s6-svscan /etc/s6.d diff --git a/parsoid/Dockerfile b/parsoid/Dockerfile deleted file mode 100644 index 4efa7b4..0000000 --- a/parsoid/Dockerfile +++ /dev/null @@ -1,28 +0,0 @@ -FROM alpine:3.6 - -ENV NODE_ENV=production \ - GID=991 UID=991 \ - INTERFACE=0.0.0.0 \ - PORT=8000 \ - ADDRESS=http://localhost/w/ \ - DOMAIN=localhost - -RUN apk -U --no-cache add \ - ca-certificates \ - libressl \ - nodejs-current \ - nodejs-current-npm \ - s6 \ - git \ - su-exec \ - && git clone https://gerrit.wikimedia.org/r/p/mediawiki/services/parsoid --depth=1 \ - && cd parsoid && npm install - -COPY rootfs / - -RUN chmod +x /usr/local/bin/* /etc/s6.d/*/* /etc/s6.d/.s6-svscan/* - -EXPOSE 8000 - -ENTRYPOINT ["run.sh"] -CMD ["/bin/s6-svscan", "/etc/s6.d"] diff --git a/parsoid/README.md b/parsoid/README.md deleted file mode 100644 index 930b942..0000000 --- a/parsoid/README.md +++ /dev/null @@ -1,28 +0,0 @@ -## wonderfall/parsoid - -#### What is this? What features? -- A **simple** Parsoid image. -- Based on Alpine Linux so it's lightweight! -- Bundled with latest node.js available (version check is disabled). - -#### Build-time variables -- **VERSION** : version of Ghost. - -#### Environment variables -- **GID** : ghost user id *(default : 991)* -- **UID** : ghost group id *(default : 991)* -- **ADDRESS** : your address *(default : http://localhost/w/)* -- **DOMAIN** : name of the container *(default : localhost)* - -### docker-compose.yml sample - -``` -mywiki-parsoid: - image: wonderfall/parsoid - container_name: mywiki-parsoid - environment: - - UID=1669 - - GID=1669 - - ADDRESS=https://wiki.domain.com/ - - DOMAIN=mywiki-parsoid -``` diff --git a/parsoid/rootfs/etc/s6.d/.s6-svscan/finish b/parsoid/rootfs/etc/s6.d/.s6-svscan/finish deleted file mode 100644 index 039e4d0..0000000 --- a/parsoid/rootfs/etc/s6.d/.s6-svscan/finish +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/sh -exit 0 diff --git a/parsoid/rootfs/etc/s6.d/parsoid/run b/parsoid/rootfs/etc/s6.d/parsoid/run deleted file mode 100644 index edf729d..0000000 --- a/parsoid/rootfs/etc/s6.d/parsoid/run +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/sh -cd /parsoid -exec node bin/server.js diff --git a/parsoid/rootfs/usr/local/bin/run.sh b/parsoid/rootfs/usr/local/bin/run.sh deleted file mode 100644 index 8806971..0000000 --- a/parsoid/rootfs/usr/local/bin/run.sh +++ /dev/null @@ -1,19 +0,0 @@ -#!/bin/sh -echo -echo ">>> wonderfall/parsoid container <<<" -echo - -cd /parsoid -cp config.example.yaml config.yaml -sed -i "s|http://localhost/w/|$ADDRESS|g" config.yaml -sed -i "s|domain: 'localhost'|domain: '$DOMAIN'|g" config.yaml - -echo "> Updating permissions..." -chown -R ${UID}:${GID} /parsoid /etc/s6.d - -echo "> Executing process..." -if [ '$@' == '' ]; then - exec su-exec ${UID}:${GID} /bin/s6-svscan /etc/s6.d -else - exec su-exec ${UID}:${GID} "$@" -fi diff --git a/parsoid/rootfs/usr/local/etc/disqus.conf b/parsoid/rootfs/usr/local/etc/disqus.conf deleted file mode 100644 index 9b20532..0000000 --- a/parsoid/rootfs/usr/local/etc/disqus.conf +++ /dev/null @@ -1,16 +0,0 @@ - -
- - -comments powered by Disqus - diff --git a/parsoid/rootfs/usr/local/etc/ghost.example.conf b/parsoid/rootfs/usr/local/etc/ghost.example.conf deleted file mode 100644 index 2b01024..0000000 --- a/parsoid/rootfs/usr/local/etc/ghost.example.conf +++ /dev/null @@ -1,21 +0,0 @@ -{ - "url": "https://my-ghost-blog.com", - - "server": { - "host": "0.0.0.0", - "port": "2368" - }, - - "database": { - "client": "sqlite3", - "connection": { - "filename": "content/data/ghost-dev.db" - }, - "useNullAsDefault": true, - "debug": false - }, - - "mail": { - "transport": "Direct" - } -} diff --git a/parsoid/rootfs/usr/local/etc/isso.conf b/parsoid/rootfs/usr/local/etc/isso.conf deleted file mode 100644 index 4287ebc..0000000 --- a/parsoid/rootfs/usr/local/etc/isso.conf +++ /dev/null @@ -1,7 +0,0 @@ - - - -
diff --git a/pgbouncer/Dockerfile b/pgbouncer/Dockerfile deleted file mode 100644 index ee04597..0000000 --- a/pgbouncer/Dockerfile +++ /dev/null @@ -1,16 +0,0 @@ -FROM alpine:3.6 - -ENV UID=991 GID=991 - -RUN apk -U --no-cache add \ - pgbouncer \ - tini \ - su-exec - -COPY run.sh /usr/local/bin/run.sh - -RUN chmod +x /usr/local/bin/run.sh - -VOLUME /etc/pgbouncer - -CMD ["run.sh"] diff --git a/pgbouncer/README.md b/pgbouncer/README.md deleted file mode 100644 index 76e3be0..0000000 --- a/pgbouncer/README.md +++ /dev/null @@ -1,10 +0,0 @@ -## wonderfall/pgbouncer - -Minimal image for [PgBouncer](https://pgbouncer.github.io/). - -### Volumes -- /etc/pgbouncer - -### Environment variables -- **GID** : user id *(default : 991)* -- **UID** : group id *(default : 991)* diff --git a/pgbouncer/run.sh b/pgbouncer/run.sh deleted file mode 100644 index 86eaa2d..0000000 --- a/pgbouncer/run.sh +++ /dev/null @@ -1,4 +0,0 @@ -#!/bin/sh -mkdir /run/pgbouncer -chown -R $UID:$GID /etc/pgbouncer /var/log/pgbouncer /run/pgbouncer -exec su-exec $UID:$GID /sbin/tini -- pgbouncer /etc/pgbouncer/pgbouncer.ini