From a307062d5b8a64b68aec4385c7b864cc5f53d680 Mon Sep 17 00:00:00 2001 From: Rik Veenboer Date: Wed, 14 Jan 2015 15:17:36 +0000 Subject: [PATCH] Import some files and transform to working containers for: * mysql * lighttpd (with php and mysql) * transmission * sabnzbd * sickbeard * couchpotato * headphones * btsync --- bin/purge | 2 +- build/Makefile | 20 ++++------ build/boot/automysqlbackup.sh | 3 ++ build/boot/btsync.sh | 7 ++++ build/boot/couchpotato.sh | 68 ++++++++++++++++++++++++++++++++ build/boot/headphones.sh | 41 +++++++++++++++++++ build/boot/hosts.sh | 3 +- build/boot/lighttpd-php.sh | 5 +++ build/boot/phpmyadmin.sh | 3 ++ build/boot/sabnzbd.sh | 15 +++++++ build/boot/sickbeard.sh | 28 +++++++++++++ build/boot/transmission.sh | 16 ++++++++ build/boot/webserver.sh | 6 +++ build/config | 16 +++++++- build/init | 2 +- build/make/automysqlbackup.mk | 3 ++ build/make/btsync.mk | 4 +- build/make/couchpotato.mk | 4 ++ build/make/headphones.mk | 4 ++ build/make/lighttpd-php.mk | 4 +- build/make/lighttpd.mk | 2 +- build/make/mysql.mk | 2 +- build/make/php.mk | 2 +- build/make/phpmyadmin.mk | 3 ++ build/make/sabnzbd.mk | 4 ++ build/make/sickbeard.mk | 4 ++ build/make/subliminal.mk | 2 + build/make/test.mk | 2 + build/make/transmission.mk | 4 ++ build/make/webserver.mk | 3 ++ build/runit/btsync | 10 +---- build/runit/couchpotato | 3 ++ build/runit/cron | 3 +- build/runit/gmrender | 2 +- build/runit/hamachi | 1 + build/runit/headphones | 3 ++ build/runit/lighttpd | 9 ++--- build/runit/lighttpd-php | 3 ++ build/runit/minidlna | 1 + build/runit/mysql | 13 +----- build/runit/proxy | 1 + build/runit/redis | 3 +- build/runit/sabnzbd | 4 ++ build/runit/sickbeard | 3 ++ build/runit/sshd | 3 +- build/runit/syslog | 8 +--- build/runit/transmission | 4 ++ build/runit/upnpproxy | 1 + build/scripts/automysqlbackup.sh | 26 ++++++++++++ build/scripts/btsync.sh | 21 +++++----- build/scripts/cleanup.sh | 2 +- build/scripts/couchpotato.sh | 12 ++++++ build/scripts/headphones.sh | 18 +++++++++ build/scripts/hosts.sh | 2 +- build/scripts/lighttpd-php.sh | 22 +++++++++-- build/scripts/lighttpd.sh | 27 +++++++++---- build/scripts/mysql.sh | 6 +++ build/scripts/php.sh | 9 ++++- build/scripts/phpmyadmin.sh | 31 +++++++++++++++ build/scripts/prepare.sh | 13 +++--- build/scripts/redis.sh | 21 ++++++++++ build/scripts/sabnzbd.sh | 24 +++++++++++ build/scripts/sickbeard.sh | 13 ++++++ build/scripts/subliminal.sh | 18 +++++++++ build/scripts/transmission.sh | 14 +++++++ build/scripts/webserver.sh | 11 ++++++ images/automysqlbackup.mk | 6 +++ images/btsync.mk | 6 +++ images/chrome.mk | 6 +++ images/couchpotato.mk | 6 +++ images/firefox.mk | 6 +++ images/hamachi.mk | 6 +++ images/headphones.mk | 6 +++ images/mpd.mk | 6 +++ images/mysql.mk | 2 +- images/redis.mk | 6 +++ images/sabnzbd.mk | 6 +++ images/sickbeard.mk | 6 +++ images/test.mk | 6 +++ images/transmission.mk | 6 +++ images/webserver.mk | 2 +- 81 files changed, 635 insertions(+), 94 deletions(-) create mode 100644 build/boot/automysqlbackup.sh create mode 100644 build/boot/btsync.sh create mode 100644 build/boot/couchpotato.sh create mode 100644 build/boot/headphones.sh create mode 100644 build/boot/lighttpd-php.sh create mode 100644 build/boot/phpmyadmin.sh create mode 100644 build/boot/sabnzbd.sh create mode 100644 build/boot/sickbeard.sh create mode 100644 build/boot/transmission.sh create mode 100644 build/boot/webserver.sh create mode 100644 build/make/automysqlbackup.mk create mode 100644 build/make/couchpotato.mk create mode 100644 build/make/headphones.mk create mode 100644 build/make/phpmyadmin.mk create mode 100644 build/make/sabnzbd.mk create mode 100644 build/make/sickbeard.mk create mode 100644 build/make/subliminal.mk create mode 100644 build/make/test.mk create mode 100644 build/make/transmission.mk create mode 100644 build/make/webserver.mk create mode 100644 build/runit/couchpotato create mode 100644 build/runit/headphones create mode 100644 build/runit/lighttpd-php create mode 100644 build/runit/sabnzbd create mode 100644 build/runit/sickbeard create mode 100644 build/runit/transmission create mode 100644 build/scripts/automysqlbackup.sh create mode 100644 build/scripts/couchpotato.sh create mode 100644 build/scripts/headphones.sh create mode 100644 build/scripts/phpmyadmin.sh create mode 100644 build/scripts/sabnzbd.sh create mode 100644 build/scripts/sickbeard.sh create mode 100644 build/scripts/subliminal.sh create mode 100644 build/scripts/transmission.sh create mode 100644 build/scripts/webserver.sh create mode 100644 images/automysqlbackup.mk create mode 100644 images/btsync.mk create mode 100644 images/chrome.mk create mode 100644 images/couchpotato.mk create mode 100644 images/firefox.mk create mode 100644 images/hamachi.mk create mode 100644 images/headphones.mk create mode 100644 images/mpd.mk create mode 100644 images/redis.mk create mode 100644 images/sabnzbd.mk create mode 100644 images/sickbeard.mk create mode 100644 images/test.mk create mode 100644 images/transmission.mk diff --git a/bin/purge b/bin/purge index d976bdf..4f46498 100644 --- a/bin/purge +++ b/bin/purge @@ -1 +1 @@ -docker images | grep '' | awk '{print $3}' | xargs docker rmi \ No newline at end of file +docker images | grep '' | awk '{print $3}' | xargs docker rmi -f \ No newline at end of file diff --git a/build/Makefile b/build/Makefile index 96f08c4..3187e3c 100644 --- a/build/Makefile +++ b/build/Makefile @@ -3,14 +3,15 @@ HOME = $(DOCKER_HOME) BASE = $(HOME)/build FILE = $(BASE)/Dockerfile FROM = ubuntu:trusty -PORT = 8001 -MODE = minimal -ARGS = --rm=true #--no-cache - +INTERFACE = eth0 +PORT = 8000 +MODE = normal +ARGS = --rm=false# --no-cache include $(wildcard $(HOME)/build/make/*.mk) define download - @echo 'RUN wget -q $(1) $$HOST_ADDR:$$HOST_PORT/$(2) $(3)' >> ${FILE} + @$(eval MD5=$(shell md5sum build/$(2) | awk '{print $$1}')) + @echo 'RUN wget -q $(1) $$HOST_ADDR:$$HOST_PORT/$(2) $(3) # $(MD5)' >> ${FILE} endef define execute @@ -32,25 +33,20 @@ define script $(call execute,scripts/$(1).sh) endef -define script_force - $(call execute,scripts/$(1).sh?random=$(RANDOM)) -endef - all: build bin service clean -build: prepare +build: prepare base $(call script,cleanup) @echo 'RUN chmod +x /opt/init.d/*' >> ${FILE} @echo 'CMD ["/opt/init"]' >> ${FILE} @$(shell cd ${BASE} && python -m SimpleHTTPServer $(PORT) > /dev/null &) - @sleep 2 @docker build -t $(NAME):$(VERSION) $(ARGS) ${BASE} @kill -9 $(lsof -i tcp:$(PORT) -t) prepare: @echo FROM $(FROM) > ${FILE} @echo ENV MODE $(MODE) >> ${FILE} - @$(eval HOST_ADDR := $(shell ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $$1}')) + @$(eval HOST_ADDR := $(shell ifconfig $(INTERFACE) | grep 'inet addr:' | cut -d: -f2 | awk '{print $$1}')) @echo ENV HOST_ADDR $(HOST_ADDR) >> ${FILE} @echo ENV HOST_PORT $(PORT) >> ${FILE} @echo 'RUN apt-get install -y wget' >> ${FILE} diff --git a/build/boot/automysqlbackup.sh b/build/boot/automysqlbackup.sh new file mode 100644 index 0000000..e8ed8a5 --- /dev/null +++ b/build/boot/automysqlbackup.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +/opt/automysqlbackup/automysqlbackup $AUTOMYSQLBACKUP_CONFIG \ No newline at end of file diff --git a/build/boot/btsync.sh b/build/boot/btsync.sh new file mode 100644 index 0000000..01ad6c9 --- /dev/null +++ b/build/boot/btsync.sh @@ -0,0 +1,7 @@ +#!/bin/bash +set -e +if [[ ! -e $BTSYNC_CONFIG ]]; then + mkdir -p `dirname $BTSYNC_CONFIG` + /opt/btsync --dump-sample-config > $BTSYNC_CONFIG + sed -i "s,\(\"listen\"\s*:\).*,\1 \"0.0.0.0:8888\"\,," $BTSYNC_CONFIG +fi \ No newline at end of file diff --git a/build/boot/couchpotato.sh b/build/boot/couchpotato.sh new file mode 100644 index 0000000..8821b6f --- /dev/null +++ b/build/boot/couchpotato.sh @@ -0,0 +1,68 @@ +#!/bin/bash +set -e +mkdir -p `dirname $COUCHPOTATO_CONFIG` +if [[ ! -e $COUCHPOTATO_CONFIG ]]; then + cat << EOF > $COUCHPOTATO_CONFIG +[core] +show_wizard = 0 + +[updater] +enabled = 0 + +[binsearch] +enabled = 1 + +[nzbclub] +enabled = 1 + +[kickasstorrents] +enabled = 1 + +[thepiratebay] +domain = +enabled = 1 +extra_score = 0 +seed_time = 40 +seed_ratio = 1 + +[yify] +enabled = 1 + +[blackhole] +directory = /host/srv/torrents +manual = 0 +enabled = 1 +use_for = torrent +create_subdir = 0 + +[sabnzbd] +category = movies +delete_failed = 1 +enabled = 1 +manual = 0 +host = sabnzbd:8083 +remove_complete = 1 + +[transmission] +username = user +manual = 0 +enabled = 1 +host = transmission:9091 +stalled_as_failed = 1 +delete_failed = 1 +rpc_url = transmission +delete_files = 1 +remove_complete = 1 + +[manage] +cleanup = 1 +enabled = 1 +library = /host/srv/movies +startup_scan = 1 +library_refresh_interval = 0 + +[renamer] +from = /host/srv/downloads +to = /host/srv/movies +EOF +fi diff --git a/build/boot/headphones.sh b/build/boot/headphones.sh new file mode 100644 index 0000000..af0aa6c --- /dev/null +++ b/build/boot/headphones.sh @@ -0,0 +1,41 @@ +#!/bin/bash +set -e +mkdir -p `dirname $HEADPHONES_CONFIG` +mkdir -p `dirname $HEADPHONES_DATA` +if [[ ! -e $HEADPHONES_CONFIG ]]; then + cat << EOF > $HEADPHONES_CONFIG +[General] +cache_dir = /host/var/lib/headphones +music_dir = /host/srv/headphones +destination_dir = /host/srv/headphones +preferred_bitrate = 192 +auto_add_artists = 1 +correct_metadata = 1 +move_files = 1 +rename_files = 1 +folder_format = $Artist/$Album +file_format = $Artist - $Title +file_underscores = 0 +cleanup_files = 1 +add_album_art = 1 +album_art_format = $Artist - $Album +nzb_downloader = 1 +torrent_downloader = 1 +download_dir = /host/srv/downloads +autowant_upcoming = 1 +torrentblackhole_dir = "" +isohunt = 1 +kat = 1 +mininova = 1 +piratebay = 1 +download_torrent_dir = /host/srv/downloads +music_encoder = 1 +encoder = ffmpeg +bitrate = 192 +samplingfrequency = 44100 +[SABnzbd] +sab_host = http://sabnzbd:8080/ +[Transmission] +transmission_host = transmission:9091 +EOF +fi \ No newline at end of file diff --git a/build/boot/hosts.sh b/build/boot/hosts.sh index cf95dc4..dc293ad 100644 --- a/build/boot/hosts.sh +++ b/build/boot/hosts.sh @@ -1,4 +1,5 @@ #!/bin/bash set -e -echo "127.0.0.1 localhost" >> /tmp/hosts +# echo "127.0.0.1 localhost" >> /tmp/hosts +cp /etc/hosts /tmp echo "$HOST_ADDR host" >> /tmp/hosts diff --git a/build/boot/lighttpd-php.sh b/build/boot/lighttpd-php.sh new file mode 100644 index 0000000..9ddc494 --- /dev/null +++ b/build/boot/lighttpd-php.sh @@ -0,0 +1,5 @@ +#!/bin/bash +set -e +if [[ ! -e $PHP_CONFIG ]]; then + cp /usr/local/lib/php.ini $PHP_CONFIG +fi \ No newline at end of file diff --git a/build/boot/phpmyadmin.sh b/build/boot/phpmyadmin.sh new file mode 100644 index 0000000..afb43ab --- /dev/null +++ b/build/boot/phpmyadmin.sh @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +sed -i "s,\(\['host'\]\s*=\s*\).*$,\1'$MYSQL_PORT_3306_TCP_ADDR';," $PMA_CONFIG \ No newline at end of file diff --git a/build/boot/sabnzbd.sh b/build/boot/sabnzbd.sh new file mode 100644 index 0000000..2f04fb5 --- /dev/null +++ b/build/boot/sabnzbd.sh @@ -0,0 +1,15 @@ +#!/bin/bash +set -e +mkdir -p `dirname $SABNZBD_CONFIG` +if [[ ! -e $SABNZBD_CONFIG ]]; then + cat << EOF > $SABNZBD_CONFIG +[misc] +log_dir = /host/var/log/sabnzbd +admin_dir = /host/var/lib/sabnzbd/admin +download_dir = /host/tmp/downloads +cache_dir = /host/var/lib/sabnzbd/cache +complete_dir = /host/srv/downloads +auto_browser = 0 +[servers] +EOF +fi diff --git a/build/boot/sickbeard.sh b/build/boot/sickbeard.sh new file mode 100644 index 0000000..9a24f98 --- /dev/null +++ b/build/boot/sickbeard.sh @@ -0,0 +1,28 @@ +#!/bin/bash +set -e +mkdir -p `dirname $SICKBEARD_CONFIG` +if [[ ! -e $SICKBEARD_CONFIG ]]; then + cat << EOF > $SICKBEARD_CONFIG +[General] +config_version = 6 +log_dir = /host/var/log/sickbeard +use_nzbs = 1 +use_torrents = 1 +nzb_method = sabnzbd +flatten_folders_default = 1 +root_dirs = 0|/host/srv/shows +tv_download_dir = /host/srv/downloads +process_automatically = 1 +rename_episodes = 1 +extra_scripts = /opt/subtitles +[Blackhole] +nzb_dir = "" +torrent_dir = /host/srv/torrents +[SABnzbd] +sab_username = "" +sab_password = "" +sab_apikey = "" +sab_category = tv +sab_host = http://sabnzbd:8080/ +EOF +fi diff --git a/build/boot/transmission.sh b/build/boot/transmission.sh new file mode 100644 index 0000000..39e740b --- /dev/null +++ b/build/boot/transmission.sh @@ -0,0 +1,16 @@ +#!/bin/bash +set -e +mkdir -p $TRANSMISSION_CONFIG +if [[ ! -e $TRANSMISSION_CONFIG ]]; then + cat /etc/transmission-daemon/settings.json | + jq ".[\"download-dir\"] = \"$TRANSMISSION_COMPLETE\"" | + jq ".[\"download-limit\"] = \"$DOCKER_HOME\"" | + jq ".+ { + \"rpc-whitelist-enabled\": false, + \"watch-dir\": \"$TRANSMISSION_TORRENTS\", + \"watch-dir-enabled\": true, + \"incomplete-dir\": \"$TRANSMISSION_DOWNLOAD\", + \"incomplete-dir-enabled\": true, + \"port-forwarding-enabled\": true + }" > $TRANSMISSION_CONFIG/settings.json +fi \ No newline at end of file diff --git a/build/boot/webserver.sh b/build/boot/webserver.sh new file mode 100644 index 0000000..f65a98c --- /dev/null +++ b/build/boot/webserver.sh @@ -0,0 +1,6 @@ +#!/bin/bash +set -e +mkdir -p $LIGHTTPD_DOMAINS +if [[ ! -e $LIGHTTPD_DOMAINS ]]; then + touch $LIGHTTPD_DOMAINS/empty.conf +fi \ No newline at end of file diff --git a/build/config b/build/config index 1317ad2..4336a8b 100644 --- a/build/config +++ b/build/config @@ -5,15 +5,27 @@ apt_get_install='apt-get install -y --no-install-recommends' apt_get_install_permanent() { echo $@ >> /build/permanent - $apt_get_install "$@" + $apt_get_install "$@" } apt_get_install_temporary() { echo $@ >> /build/temporary - $apt_get_install "$@" + $apt_get_install "$@" +} + +apt_remove() { + apt-get -y --purge autoremove } export_env() { export $1="$2" echo -n $2 > /etc/container_environment/$1 +} + +import_env() { + export $1=`cat /etc/container_environment/$1` +} + +add_host() { + echo "echo \"\$${1^^}_PORT_3306_TCP_ADDR $1\" >> /tmp/hosts" >> /opt/init.d/*_hosts } \ No newline at end of file diff --git a/build/init b/build/init index 57e1698..76319c6 100644 --- a/build/init +++ b/build/init @@ -1,5 +1,5 @@ #!/usr/bin/python2 -u -# Copyright (c) 2014 Rik Veenboer +# Copyright (c) 2015 Rik Veenboer # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by diff --git a/build/make/automysqlbackup.mk b/build/make/automysqlbackup.mk new file mode 100644 index 0000000..1802f59 --- /dev/null +++ b/build/make/automysqlbackup.mk @@ -0,0 +1,3 @@ +automysqlbackup: + $(call script,$@) + $(call boot,02,$@) \ No newline at end of file diff --git a/build/make/btsync.mk b/build/make/btsync.mk index 6f9468f..b742c37 100644 --- a/build/make/btsync.mk +++ b/build/make/btsync.mk @@ -1,3 +1,3 @@ btsync: - cp $(BASE)/scripts/*_$@.sh build/scripts - cp $(BASE)/runit/$@ build/runit \ No newline at end of file + $(call script,$@) + $(call runit,$@) \ No newline at end of file diff --git a/build/make/couchpotato.mk b/build/make/couchpotato.mk new file mode 100644 index 0000000..b92687a --- /dev/null +++ b/build/make/couchpotato.mk @@ -0,0 +1,4 @@ +couchpotato: + $(call script,$@) + $(call boot,02,$@) + $(call runit,$@) \ No newline at end of file diff --git a/build/make/headphones.mk b/build/make/headphones.mk new file mode 100644 index 0000000..2761ec9 --- /dev/null +++ b/build/make/headphones.mk @@ -0,0 +1,4 @@ +headphones: + $(call script,$@) + $(call boot,02,$@) + $(call runit,$@) \ No newline at end of file diff --git a/build/make/lighttpd-php.mk b/build/make/lighttpd-php.mk index 37ae70f..67ae5aa 100644 --- a/build/make/lighttpd-php.mk +++ b/build/make/lighttpd-php.mk @@ -1,2 +1,4 @@ lighttpd-php: php lighttpd - $(call script_force,$@) \ No newline at end of file + $(call script,$@) + $(call boot,02,$@) + $(call runit,$@) \ No newline at end of file diff --git a/build/make/lighttpd.mk b/build/make/lighttpd.mk index 80cb077..3ce3f66 100644 --- a/build/make/lighttpd.mk +++ b/build/make/lighttpd.mk @@ -1,3 +1,3 @@ lighttpd: - $(call script_force,$@) + $(call script,$@) $(call runit,$@) \ No newline at end of file diff --git a/build/make/mysql.mk b/build/make/mysql.mk index 46a69cf..451a786 100644 --- a/build/make/mysql.mk +++ b/build/make/mysql.mk @@ -1,3 +1,3 @@ mysql: - $(call script_force,$@) + $(call script,$@) $(call runit,$@) \ No newline at end of file diff --git a/build/make/php.mk b/build/make/php.mk index 0647c1d..47ae66d 100644 --- a/build/make/php.mk +++ b/build/make/php.mk @@ -1,2 +1,2 @@ php: - $(call script_force,$@) \ No newline at end of file + $(call script,$@) \ No newline at end of file diff --git a/build/make/phpmyadmin.mk b/build/make/phpmyadmin.mk new file mode 100644 index 0000000..dd8a588 --- /dev/null +++ b/build/make/phpmyadmin.mk @@ -0,0 +1,3 @@ +phpmyadmin: lighttpd-php + $(call script,$@) + $(call boot,02,$@) \ No newline at end of file diff --git a/build/make/sabnzbd.mk b/build/make/sabnzbd.mk new file mode 100644 index 0000000..725611b --- /dev/null +++ b/build/make/sabnzbd.mk @@ -0,0 +1,4 @@ +sabnzbd: + $(call script,$@) + $(call boot,02,$@) + $(call runit,$@) \ No newline at end of file diff --git a/build/make/sickbeard.mk b/build/make/sickbeard.mk new file mode 100644 index 0000000..88a19a1 --- /dev/null +++ b/build/make/sickbeard.mk @@ -0,0 +1,4 @@ +sickbeard: subliminal + $(call script,$@) + $(call boot,02,$@) + $(call runit,$@) \ No newline at end of file diff --git a/build/make/subliminal.mk b/build/make/subliminal.mk new file mode 100644 index 0000000..320519b --- /dev/null +++ b/build/make/subliminal.mk @@ -0,0 +1,2 @@ +subliminal: + $(call script,$@) \ No newline at end of file diff --git a/build/make/test.mk b/build/make/test.mk new file mode 100644 index 0000000..675c955 --- /dev/null +++ b/build/make/test.mk @@ -0,0 +1,2 @@ +test: php + $(call script,$@) \ No newline at end of file diff --git a/build/make/transmission.mk b/build/make/transmission.mk new file mode 100644 index 0000000..1c7c5cb --- /dev/null +++ b/build/make/transmission.mk @@ -0,0 +1,4 @@ +transmission: + $(call script,$@) + $(call boot,02,$@) + $(call runit,$@) \ No newline at end of file diff --git a/build/make/webserver.mk b/build/make/webserver.mk new file mode 100644 index 0000000..a92c7ef --- /dev/null +++ b/build/make/webserver.mk @@ -0,0 +1,3 @@ +webserver: phpmyadmin + $(call script,$@) + $(call boot,02,$@) \ No newline at end of file diff --git a/build/runit/btsync b/build/runit/btsync index 02c0f6e..860a522 100644 --- a/build/runit/btsync +++ b/build/runit/btsync @@ -1,9 +1,3 @@ #!/bin/sh -mkdir -p $BTSYNC_DATA -if [ ! -e $BTSYNC_CONFIG ]; then - mkdir -p `dirname $BTSYNC_CONFIG` - /opt/btsync --dump-sample-config > $BTSYNC_CONFIG - sed -i 's,\("listening_port"\s*:\)\s*[0-9]\+,\1 5555,' $BTSYNC_CONFIG - sed -i "s,\(\"storage_path\"\s*:\).*,\1 \"$BTSYNC_DATA\"\,," $BTSYNC_CONFIG -fi -/opt/btsync --nodaemon --config $BTSYNC_CONFIG +set -e +/opt/btsync --nodaemon --config $BTSYNC_CONFIG \ No newline at end of file diff --git a/build/runit/couchpotato b/build/runit/couchpotato new file mode 100644 index 0000000..91d1dcd --- /dev/null +++ b/build/runit/couchpotato @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +/opt/CouchPotatoServer/CouchPotato.py --config_file $COUCHPOTATO_CONFIG --data_dir $COUCHPOTATO_DATA \ No newline at end of file diff --git a/build/runit/cron b/build/runit/cron index 3638fb8..c2c1009 100644 --- a/build/runit/cron +++ b/build/runit/cron @@ -1,2 +1,3 @@ #!/bin/sh -/usr/sbin/cron -f +set -e +/usr/sbin/cron -f \ No newline at end of file diff --git a/build/runit/gmrender b/build/runit/gmrender index d27690c..38fdd41 100644 --- a/build/runit/gmrender +++ b/build/runit/gmrender @@ -4,4 +4,4 @@ if [ -z "$GMRENDER_NAME" ]; then /usr/local/bin/gmediarender else /usr/local/bin/gmediarender -f $GMRENDER_NAME -fi +fi \ No newline at end of file diff --git a/build/runit/hamachi b/build/runit/hamachi index 5f05d6e..315a7d7 100644 --- a/build/runit/hamachi +++ b/build/runit/hamachi @@ -1,4 +1,5 @@ #!/bin/sh +set -e /opt/logmein-hamachi/bin/hamachid -c $HAMACHI_DATA strace -qqe '' -p `pgrep hamachid` /host/bin/proxy \ No newline at end of file diff --git a/build/runit/headphones b/build/runit/headphones new file mode 100644 index 0000000..bcb2c4d --- /dev/null +++ b/build/runit/headphones @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +python /opt/headphones/Headphones.py --config=$HEADPHONES_CONFIG --datadir=$HEADPHONES_DATA \ No newline at end of file diff --git a/build/runit/lighttpd b/build/runit/lighttpd index 01ea02b..55ad4fa 100644 --- a/build/runit/lighttpd +++ b/build/runit/lighttpd @@ -1,7 +1,4 @@ #!/bin/bash -mkdir -p `dirname $LIGHTTPD_LOG` $LIGHTTPD_DOMAINS -chown www-data:www-data `dirname $LIGHTTPD_LOG` -if [[ ! -e $LIGHTTPD_DOMAINS ]]; then - touch $LIGHTTPD_DOMAINS/empty.conf -fi -/usr/sbin/lighttpd -D -f $LIGHTTPD_CONFIG \ No newline at end of file +set -e +mkdir -p `dirname $LIGHTTPD_LOG` +/usr/local/sbin/lighttpd -D -f $LIGHTTPD_CONFIG \ No newline at end of file diff --git a/build/runit/lighttpd-php b/build/runit/lighttpd-php new file mode 100644 index 0000000..fde08ef --- /dev/null +++ b/build/runit/lighttpd-php @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +/usr/local/bin/php-cgi -b 127.0.0.1:$PHP_CGI_PORT -c $PHP_CONFIG \ No newline at end of file diff --git a/build/runit/minidlna b/build/runit/minidlna index 4a26062..c315b1b 100644 --- a/build/runit/minidlna +++ b/build/runit/minidlna @@ -1,4 +1,5 @@ #!/bin/sh +set -e if [ ! -f $MINIDLNA_CONFIG ]; then mkdir -p `dirname $$MINIDLNA_CONFIG` cp /opt/minidlna-$MINIDLNA_VERSION/minidlna.conf $MINIDLNA_CONFIG diff --git a/build/runit/mysql b/build/runit/mysql index 861a8f4..2f53a5d 100644 --- a/build/runit/mysql +++ b/build/runit/mysql @@ -1,18 +1,9 @@ #!/bin/bash -set -m -echo "$HOST_ADDR host" >> /tmp/hosts +set -e mkdir -p `dirname $MYSQL_LOG` if [ ! -d $MYSQL_DATA ]; then mkdir `dirname $MYSQL_DATA` cp /var/lib/mysql/ $MYSQL_DATA -R chown mysql:mysql $MYSQL_DATA -R - MYSQL_SETUP=true -fi -/usr/bin/mysqld_safe --skip-syslog & -if [[ -n "$MYSQL_SETUP" ]]; then - until [[ -n $(netstat -an | grep 3306) ]]; do - sleep 1 - done - mysqladmin -u root password dummy - fg fi +/usr/bin/mysqld_safe --skip-syslog \ No newline at end of file diff --git a/build/runit/proxy b/build/runit/proxy index 80cbff2..3c6ee98 100644 --- a/build/runit/proxy +++ b/build/runit/proxy @@ -1,3 +1,4 @@ #!/bin/bash +set -e socat TCP-LISTEN:8888,fork TCP:host:8888 & socat TCP-LISTEN:80,fork,crlf SYSTEM:"echo HTTP/1.0 200; echo Content-Type: text/plain; echo;" & \ No newline at end of file diff --git a/build/runit/redis b/build/runit/redis index f06c514..d9ee1f3 100644 --- a/build/runit/redis +++ b/build/runit/redis @@ -1,5 +1,6 @@ #!/bin/sh +set -e mkdir -p `dirname $REDIS_LOG` $REDIS_DATA sysctl vm.overcommit_memory=1 /usr/bin/redis-server $REDIS_CONFIG -#/opt/redis-$VERSION/src/redis-server $REDIS_CONFIG +#/opt/redis-$VERSION/src/redis-server $REDIS_CONFIG \ No newline at end of file diff --git a/build/runit/sabnzbd b/build/runit/sabnzbd new file mode 100644 index 0000000..7da6cfa --- /dev/null +++ b/build/runit/sabnzbd @@ -0,0 +1,4 @@ +#!/bin/bash +set -e +ADDR=`ifconfig eth0 | grep 'inet addr:' | cut -d: -f2 | awk '{print $1}'` +sabnzbdplus -f $SABNZBD_CONFIG -s $ADDR \ No newline at end of file diff --git a/build/runit/sickbeard b/build/runit/sickbeard new file mode 100644 index 0000000..ee007b9 --- /dev/null +++ b/build/runit/sickbeard @@ -0,0 +1,3 @@ +#!/bin/bash +set -e +/opt/Sick-Beard/SickBeard.py --config=$SICKBEARD_CONFIG --datadir=$SICKBEARD_DATA \ No newline at end of file diff --git a/build/runit/sshd b/build/runit/sshd index ee85db5..d7f0782 100644 --- a/build/runit/sshd +++ b/build/runit/sshd @@ -1,2 +1,3 @@ #!/bin/sh -/usr/sbin/sshd -D +set -e +/usr/sbin/sshd -D \ No newline at end of file diff --git a/build/runit/syslog b/build/runit/syslog index c850a34..fd90f1a 100644 --- a/build/runit/syslog +++ b/build/runit/syslog @@ -1,10 +1,6 @@ #!/bin/sh set -e - -SYSLOGNG_OPTS="" - [ -r /etc/default/syslog-ng ] && . /etc/default/syslog-ng - case "x$CONSOLE_LOG_LEVEL" in x[1-8]) dmesg -n $CONSOLE_LOG_LEVEL @@ -15,10 +11,8 @@ case "x$CONSOLE_LOG_LEVEL" in echo "CONSOLE_LOG_LEVEL is of unaccepted value." ;; esac - if [ ! -e /dev/xconsole ] then mknod -m 640 /dev/xconsole p fi - -syslog-ng -F -p /var/run/syslog-ng.pid $SYSLOGNG_OPTS +syslog-ng -F -p /var/run/syslog-ng.pid \ No newline at end of file diff --git a/build/runit/transmission b/build/runit/transmission new file mode 100644 index 0000000..718d3ca --- /dev/null +++ b/build/runit/transmission @@ -0,0 +1,4 @@ +#!/bin/bash +set -e +mkdir -p `dirname $TRANSMISSION_LOG` +transmission-daemon -f -g $TRANSMISSION_CONFIG -e $TRANSMISSION_LOG --log-error \ No newline at end of file diff --git a/build/runit/upnpproxy b/build/runit/upnpproxy index 9e4361a..5429fa6 100644 --- a/build/runit/upnpproxy +++ b/build/runit/upnpproxy @@ -1,4 +1,5 @@ #!/bin/sh +set -e if [ ! -f $UPNPPROXY_CONFIG ]; then mkdir -p `dirname $UPNPPROXY_CONFIG` cp /opt/upnpproxy/doc/upnpproxy.conf $UPNPPROXY_CONFIG diff --git a/build/scripts/automysqlbackup.sh b/build/scripts/automysqlbackup.sh new file mode 100644 index 0000000..ba5b25c --- /dev/null +++ b/build/scripts/automysqlbackup.sh @@ -0,0 +1,26 @@ +#!/bin/bash +set -e +source /build/config +set -x + +## Environment +export_env AUTOMYSQLBACKUP_VERSION_MAJOR 3.0 +export_env AUTOMYSQLBACKUP_VERSION_MINOR rc6 +export_env AUTOMYSQLBACKUP_VERSION v${AUTOMYSQLBACKUP_VERSION_MAJOR}_${AUTOMYSQLBACKUP_VERSION_MINOR} +export_env AUTOMYSQLBACKUP_CONFIG /etc/automysqlbackup/automysqlbackup.conf +export_env AUTOMYSQLBACKUP_DATA /host/var/backup/db + +## AutoMySQLBackup +apt_get_install_permanent mysql-client +cd /opt +wget "http://downloads.sourceforge.net/project/automysqlbackup/AutoMySQLBackup/AutoMySQLBackup VER $AUTOMYSQLBACKUP_VERSION_MAJOR/automysqlbackup-$AUTOMYSQLBACKUP_VERSION.tar.gz" +mkdir automysqlbackup +tar xzf automysqlbackup-$AUTOMYSQLBACKUP_VERSION.tar.gz -C automysqlbackup +mkdir -p `dirname $AUTOMYSQLBACKUP_CONFIG` +cp /opt/automysqlbackup/automysqlbackup.conf $AUTOMYSQLBACKUP_CONFIG + +## Configuration +sed -i "s,^#\(CONFIG_mysql_dump_username=\).*$,\1'backup'," $AUTOMYSQLBACKUP_CONFIG +sed -i "s,^#\(CONFIG_mysql_dump_host=\).*$,\1'mysql'," $AUTOMYSQLBACKUP_CONFIG +sed -i "s,^#\(CONFIG_backup_dir=\).*$,\1'/host/var/backup/db'," $AUTOMYSQLBACKUP_CONFIG +sed -i "s,^#\(CONFIG_db_exclude=\).*$,\1( 'mysql' 'information_schema' 'performance_schema' )," $AUTOMYSQLBACKUP_CONFIG \ No newline at end of file diff --git a/build/scripts/btsync.sh b/build/scripts/btsync.sh index c7d98ca..81f6e29 100644 --- a/build/scripts/btsync.sh +++ b/build/scripts/btsync.sh @@ -3,19 +3,16 @@ set -e source /build/config set -x -## Redis +## Configuration +export_env BTSYNC_CONFIG /host/etc/btsync.conf +export_env BTSYNC_DATA /host/var/btsync + +## BTsync cd opt wget -O btsync.tar.gz http://download-lb.utorrent.com/endpoint/btsync/os/linux-x64/track/stable tar xzf btsync.tar.gz -rm btsync.tar.gz -export BTSYNC_CONFIG=/host/etc/btsync.conf -export BTSYNC_DATA=/host/var/btsync - -## Runit script -mkdir /etc/service/btsync -mv /build/runit/btsync /etc/service/btsync/run - -## Environment variables -echo -n $BTSYNC_CONFIG > /etc/container_environment/BTSYNC_CONFIG -echo -n $BTSYNC_DATA > /etc/container_environment/BTSYNC_DATA +## Remove installation files +if [ $MODE == "minimal" ]; then + rm btsync.tar.gz +fi \ No newline at end of file diff --git a/build/scripts/cleanup.sh b/build/scripts/cleanup.sh index 09806d1..65d41f6 100644 --- a/build/scripts/cleanup.sh +++ b/build/scripts/cleanup.sh @@ -5,7 +5,7 @@ set -x ## Remove temporary packages for minimal builds if [ $MODE == "minimal" ]; then - cat /build/temporary | xargs apt-get -y --purge autoremove + cat /build/temporary | xargs apt_remove fi ## Clean apt files diff --git a/build/scripts/couchpotato.sh b/build/scripts/couchpotato.sh new file mode 100644 index 0000000..f5bedee --- /dev/null +++ b/build/scripts/couchpotato.sh @@ -0,0 +1,12 @@ +#!/bin/bash +set -e +source /build/config +set -x + +## Environment +export_env COUCHPOTATO_CONFIG /host/etc/couchpotato/config.ini +export_env COUCHPOTATO_DATA /host/var/lib/couchpotato + +## CouchPotato +cd /opt +git clone https://github.com/RuudBurger/CouchPotatoServer.git \ No newline at end of file diff --git a/build/scripts/headphones.sh b/build/scripts/headphones.sh new file mode 100644 index 0000000..33fc2a0 --- /dev/null +++ b/build/scripts/headphones.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e +source /build/config +set -x + +## Environment +export_env HEADPHONES_CONFIG /host/etc/headphones/config.ini +export_env HEADPHONES_CONFIG_DEFAULT /opt/headphones/config.ini +export_env HEADPHONES_DATA /host/var/lib/headphones + +## Headphones +cd /opt +git clone https://github.com/rembo10/headphones.git + +## Encoders +echo "deb http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu $(lsb_release -c -s) main" | sudo tee -a /etc/apt/sources.list +apt-get update +apt_get_install_permanent --force-yes ffmpeg libmp3lame0 ffmpeg libavcodec-extra-54 \ No newline at end of file diff --git a/build/scripts/hosts.sh b/build/scripts/hosts.sh index 36a5806..91f9ce4 100644 --- a/build/scripts/hosts.sh +++ b/build/scripts/hosts.sh @@ -4,7 +4,7 @@ source /build/config set -x ## Hosts file hack -LD_LIBRARY_PATH=/root/lib +export_env LD_LIBRARY_PATH /root/lib mkdir -p $LD_LIBRARY_PATH cp /lib/x86_64-linux-gnu/libnss_files.so.2 $LD_LIBRARY_PATH sed -i 's,/etc/hosts,/tmp/hosts,' $LD_LIBRARY_PATH/libnss_files.so.2 diff --git a/build/scripts/lighttpd-php.sh b/build/scripts/lighttpd-php.sh index c4349f5..c1dd750 100644 --- a/build/scripts/lighttpd-php.sh +++ b/build/scripts/lighttpd-php.sh @@ -3,6 +3,22 @@ set -e source /build/config set -x -## Enable configuration PHP in Lighttpd -ln -s /etc/lighttpd/conf-available/10-fastcgi.conf /etc/lighttpd/conf-enabled/10-fastcgi.conf -ln -s /etc/lighttpd/conf-available/15-fastcgi-php.conf /etc/lighttpd/conf-enabled/15-fastcgi-php.conf +## Environment +export_env PHP_CGI_PORT 5555 +export_env PHP_CONFIG /host/etc/php.ini + +## Enable configuration of PHP in Lighttpd +ln -s /etc/lighttpd/conf-available/10-fastcgi.conf /etc/lighttpd/conf-enabled/ +cat << EOF > /etc/lighttpd/conf-enabled/15-fastcgi-php.conf +fastcgi.server += ( + ".php" => ( + "localhost" =>( + "host" => "127.0.0.1", + "port" => $PHP_CGI_PORT + ) + ) +) +EOF + +## Workaround for PHP socket +# sed -i "s,\(\"socket\"\s*=>\s*\"\).*$,\1/tmp/php.socket\"\,," /etc/lighttpd/conf-enabled/15-fastcgi-php.conf \ No newline at end of file diff --git a/build/scripts/lighttpd.sh b/build/scripts/lighttpd.sh index 8357cd2..37f5dfb 100644 --- a/build/scripts/lighttpd.sh +++ b/build/scripts/lighttpd.sh @@ -3,16 +3,29 @@ set -e source /build/config set -x -## Lighthttpd -apt_get_install_permanent lighttpd - ## Environment +export_env LIGHTTPD_VERSION_MAJOR 1.4 +export_env LIGHTTPD_VERSION_MINOR 35 +export_env LIGHTTPD_VERSION $LIGHTTPD_VERSION_MAJOR.$LIGHTTPD_VERSION_MINOR export_env LIGHTTPD_CONFIG /etc/lighttpd/lighttpd.conf -export_env LIGHTTPD_DOMAINS /host/etc/lighttpd export_env LIGHTTPD_LOG /host/var/log/lighttpd/error.log -export_env LIGHTTPD_DATA /host/var/www/global + +## Lighthttpd +apt_get_install_permanent lighttpd +apt-get build-dep -y lighttpd +apt_get_install_temporary automake +cd /opt +wget http://download.lighttpd.net/lighttpd/releases-$LIGHTTPD_VERSION_MAJOR.x/lighttpd-$LIGHTTPD_VERSION.tar.gz +tar xzf lighttpd-$LIGHTTPD_VERSION.tar.gz && \ +cd lighttpd-$LIGHTTPD_VERSION/src +sed -i "s,\(pwd->pw_uid\s==\s\)0,\1-1," server.c +sed -i "s,\(grp->gr_gid\s==\s\)0,\1-1," server.c +cd .. +./configure +make +make install ## Configuration sed -i "s,^\(server.errorlog\s*=\s*\).*$,\1\"$LIGHTTPD_LOG\"," $LIGHTTPD_CONFIG -sed -i "s,^\(server.document-root\s*=\s*\).*$,\1\"$LIGHTTPD_DATA\"," $LIGHTTPD_CONFIG -echo "include_shell \"cat $LIGHTTPD_DOMAINS/*.conf\"" >> $LIGHTTPD_CONFIG +sed -i "s,^\(server.username\s*=\s*\).*$,\1\"root\"," $LIGHTTPD_CONFIG +sed -i "s,^\(server.groupname\s*=\s*\).*$,\1\"root\"," $LIGHTTPD_CONFIG \ No newline at end of file diff --git a/build/scripts/mysql.sh b/build/scripts/mysql.sh index f27c657..0c70fff 100644 --- a/build/scripts/mysql.sh +++ b/build/scripts/mysql.sh @@ -17,3 +17,9 @@ export_env MYSQL_DATA /host/var/lib/mysql sed -i "s,^\(log_error\s*=\s*\).*$,\1$MYSQL_LOG," $MYSQL_CONFIG sed -i "s,^\(datadir\s*=\s*\).*$,\1$MYSQL_DATA," $MYSQL_CONFIG sed -i "s,^\(bind-address\s*=\s*\).*$,\10.0.0.0," $MYSQL_CONFIG +tee -a $MYSQL_CONFIG < $PMA_CONFIG + /etc/dpkg/dpkg.cfg.d/02apt-speedup ## Prevent initramfs updates from trying to run grub and lilo. ## https://journal.paul.querna.org/articles/2013/10/15/docker-ubuntu-on-rackspace/ ## http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594189 -export INITRD=no -mkdir -p /etc/container_environment -echo -n no > /etc/container_environment/INITRD +export_env INITRD no ## Enable Ubuntu Universe and Multiverse. sed -i 's/^#\s*\(deb.*universe\)$/\1/g' /etc/apt/sources.list @@ -42,7 +44,4 @@ apt-get dist-upgrade -y --no-install-recommends ## Fix locale apt_get_install_permanent language-pack-en -locale-gen en_US - -## Create directory for boot scripts -mkdir /opt/init.d/ \ No newline at end of file +locale-gen en_US \ No newline at end of file diff --git a/build/scripts/redis.sh b/build/scripts/redis.sh index e7873a2..27025d0 100644 --- a/build/scripts/redis.sh +++ b/build/scripts/redis.sh @@ -22,3 +22,24 @@ mv /build/runit/redis /etc/service/redis/run echo -n $REDIS_CONFIG > /etc/container_environment/REDIS_CONFIG echo -n $REDIS_LOG > /etc/container_environment/REDIS_LOG echo -n $REDIS_DATA > /etc/container_environment/REDIS_DATA + + +## TODO +# ENV REDIS_VERSION stable + +# RUN cd /opt && \ + # wget http://download.redis.io/releases/redis-$REDIS_VERSION.tar.gz && \ + # tar xzf redis-$REDIS_VERSION.tar.gz && \ + # cd redis-$REDIS_VERSION && \ + # make + +# RUN chmod +x /opt/redis-$REDIS_VERSION/src/redis-server + +# ENV REDIS_CONFIG /etc/redis/redis-server.conf +# ENV REDIS_LOG /host/var/log/redis/redis-server.log +# ENV REDIS_DATA /host/var/lib/redis + +# RUN mkdir -p `dirname $REDIS_CONFIG` +# RUN cp /opt/redis-$REDIS_VERSION/redis.conf $REDIS_CONFIG +# RUN sed -i "s,^\(logfile\s*\).*$,\1$REDIS_LOG," $REDIS_CONFIG +# RUN sed -i "s,^\(dir\s*\).*$,\1$REDIS_DATA," $REDIS_CONFIG \ No newline at end of file diff --git a/build/scripts/sabnzbd.sh b/build/scripts/sabnzbd.sh new file mode 100644 index 0000000..b6210bc --- /dev/null +++ b/build/scripts/sabnzbd.sh @@ -0,0 +1,24 @@ +#!/bin/bash +set -e +source /build/config +set -x + +## Environment +export_env RAR_VERSION 4.1.1 +export_env SABNZBD_CONFIG /host/etc/sabnzbd/sabnzbd.ini +export_env SABNZBD_DATA /host/var/lib/sabnzbd + +## SABnzbd +echo "deb http://ppa.launchpad.net/jcfp/ppa/ubuntu $(lsb_release -c -s) main" | sudo tee -a /etc/apt/sources.list +apt-key adv --keyserver hkp://keyserver.ubuntu.com:11371 --recv-keys 0x98703123E0F52B2BE16D586EF13930B14BB9F05F +apt-get update +apt_get_install_permanent sabnzbdplus + +## Utilities +apt_get_install_permanent unzip par2 python-openssl python-yenc + +## Rar +cd /opt +wget http://www.rarlab.com/rar/rarlinux-x64-$RAR_VERSION.tar.gz +tar xzf rarlinux-x64-$RAR_VERSION.tar.gz +ln -s /opt/rar/rar /usr/bin \ No newline at end of file diff --git a/build/scripts/sickbeard.sh b/build/scripts/sickbeard.sh new file mode 100644 index 0000000..8a45bec --- /dev/null +++ b/build/scripts/sickbeard.sh @@ -0,0 +1,13 @@ +#!/bin/bash +set -e +source /build/config +set -x + +## Environment +export_env SICKBEARD_CONFIG /host/etc/sickbeard/config.ini +export_env SICKBEARD_DATA /host/var/lib/sickbeard + +## SickBeard +apt_get_install_permanent python-cheetah +cd /opt +git clone https://github.com/midgetspy/Sick-Beard.git \ No newline at end of file diff --git a/build/scripts/subliminal.sh b/build/scripts/subliminal.sh new file mode 100644 index 0000000..40e7525 --- /dev/null +++ b/build/scripts/subliminal.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e +source /build/config +set -x + +## Subliminal +pip install git+git://github.com/Diaoul/subliminal.git +cat << EOF > /opt/subliminal +#!/bin/bash +echo Filename to process. $1 +echo Original filename... $2 +echo Show TVDB id........ $3 +echo Season number....... $4 +echo Episode number...... $5 +echo Episode air date.... $6 +echo ... pass the episode info to Subliminal and fetch the subtitle +/usr/local/bin/subliminal -l en -- "$1" +EOF \ No newline at end of file diff --git a/build/scripts/transmission.sh b/build/scripts/transmission.sh new file mode 100644 index 0000000..8bb10c7 --- /dev/null +++ b/build/scripts/transmission.sh @@ -0,0 +1,14 @@ +#!/bin/bash +set -e +source /build/config +set -x + +## Transmission +apt_get_install_permanent transmission-daemon jq + +## Environment +export_env TRANSMISSION_CONFIG /host/etc/transmission +export_env TRANSMISSION_TORRENTS /host/srv/torrents +export_env TRANSMISSION_DOWNLOAD /host/tmp/downloads +export_env TRANSMISSION_COMPLETE /host/srv/downloads +export_env TRANSMISSION_LOG /host/var/log/transmission/error.log \ No newline at end of file diff --git a/build/scripts/webserver.sh b/build/scripts/webserver.sh new file mode 100644 index 0000000..2e990be --- /dev/null +++ b/build/scripts/webserver.sh @@ -0,0 +1,11 @@ +#!/bin/bash +set -e +source /build/config +set -x + +## Environment +import_env LIGHTTPD_CONFIG +export_env LIGHTTPD_DOMAINS /host/etc/lighttpd + +## Configuration +echo "include_shell \"cat $LIGHTTPD_DOMAINS/*.conf\"" >> $LIGHTTPD_CONFIG \ No newline at end of file diff --git a/images/automysqlbackup.mk b/images/automysqlbackup.mk new file mode 100644 index 0000000..2e31983 --- /dev/null +++ b/images/automysqlbackup.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = automysqlbackup +VERSION = latest + +build: automysqlbackup \ No newline at end of file diff --git a/images/btsync.mk b/images/btsync.mk new file mode 100644 index 0000000..46ce801 --- /dev/null +++ b/images/btsync.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = btsync +VERSION = latest + +build: btsync \ No newline at end of file diff --git a/images/chrome.mk b/images/chrome.mk new file mode 100644 index 0000000..ff27ae5 --- /dev/null +++ b/images/chrome.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = chrome +VERSION = latest + +build: pulseaudio chrome \ No newline at end of file diff --git a/images/couchpotato.mk b/images/couchpotato.mk new file mode 100644 index 0000000..d54a79e --- /dev/null +++ b/images/couchpotato.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = couchpotato +VERSION = latest + +build: couchpotato \ No newline at end of file diff --git a/images/firefox.mk b/images/firefox.mk new file mode 100644 index 0000000..f3fcb61 --- /dev/null +++ b/images/firefox.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = firefox +VERSION = latest + +build: pulseaudio firefox \ No newline at end of file diff --git a/images/hamachi.mk b/images/hamachi.mk new file mode 100644 index 0000000..cfa9ef9 --- /dev/null +++ b/images/hamachi.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = hamachi +VERSION = latest + +build: hamachi \ No newline at end of file diff --git a/images/headphones.mk b/images/headphones.mk new file mode 100644 index 0000000..884efa4 --- /dev/null +++ b/images/headphones.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = headphones +VERSION = latest + +build: headphones \ No newline at end of file diff --git a/images/mpd.mk b/images/mpd.mk new file mode 100644 index 0000000..4cce8b4 --- /dev/null +++ b/images/mpd.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = mpd +VERSION = latest + +build: pulseaudio mpd \ No newline at end of file diff --git a/images/mysql.mk b/images/mysql.mk index f43e552..e98baec 100644 --- a/images/mysql.mk +++ b/images/mysql.mk @@ -3,4 +3,4 @@ include $(DOCKER_HOME)/build/Makefile NAME = mysql VERSION = latest -build: base mysql \ No newline at end of file +build: mysql \ No newline at end of file diff --git a/images/redis.mk b/images/redis.mk new file mode 100644 index 0000000..c7cbb28 --- /dev/null +++ b/images/redis.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = redis +VERSION = latest + +build: redis \ No newline at end of file diff --git a/images/sabnzbd.mk b/images/sabnzbd.mk new file mode 100644 index 0000000..0adbc7a --- /dev/null +++ b/images/sabnzbd.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = sabnzbd +VERSION = latest + +build: sabnzbd \ No newline at end of file diff --git a/images/sickbeard.mk b/images/sickbeard.mk new file mode 100644 index 0000000..b305fbe --- /dev/null +++ b/images/sickbeard.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = sickbeard +VERSION = latest + +build: sickbeard \ No newline at end of file diff --git a/images/test.mk b/images/test.mk new file mode 100644 index 0000000..c6f8961 --- /dev/null +++ b/images/test.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = test +VERSION = latest + +build: php test \ No newline at end of file diff --git a/images/transmission.mk b/images/transmission.mk new file mode 100644 index 0000000..8e35d81 --- /dev/null +++ b/images/transmission.mk @@ -0,0 +1,6 @@ +include $(DOCKER_HOME)/build/Makefile + +NAME = transmission +VERSION = latest + +build: transmission \ No newline at end of file diff --git a/images/webserver.mk b/images/webserver.mk index 343c529..77a5914 100644 --- a/images/webserver.mk +++ b/images/webserver.mk @@ -3,4 +3,4 @@ include $(DOCKER_HOME)/build/Makefile NAME = webserver VERSION = latest -build: base lighttpd-php \ No newline at end of file +build: phpmyadmin webserver \ No newline at end of file