Build webserver stack using latest versions, from debian:jessie
This commit is contained in:
0
bin/enter-bash
Normal file → Executable file
0
bin/enter-bash
Normal file → Executable file
0
bin/killall
Normal file → Executable file
0
bin/killall
Normal file → Executable file
0
bin/pidenter
Normal file → Executable file
0
bin/pidenter
Normal file → Executable file
0
bin/run-bash
Normal file → Executable file
0
bin/run-bash
Normal file → Executable file
0
bin/stopall
Normal file → Executable file
0
bin/stopall
Normal file → Executable file
@@ -1,5 +1,5 @@
|
||||
TMP = /build/tmp
|
||||
FROM = ubuntu:trusty
|
||||
FROM = debian:jessie
|
||||
MODE = normal
|
||||
ARGS = --rm=false --no-cache=false
|
||||
include $(wildcard $(DOCKER_HOME)/build/make/*.mk)
|
||||
@@ -34,7 +34,7 @@ all: build bin service clean
|
||||
|
||||
build: prepare base
|
||||
$(call script,cleanup)
|
||||
@echo 'RUN chmod +x /opt/init.d/* || :' >> ${FILE}
|
||||
@echo 'RUN chmod +x -R /opt/init.d' >> ${FILE}
|
||||
@echo 'CMD ["/opt/init"]' >> ${FILE}
|
||||
@docker build -t $(NAME):$(VERSION) $(ARGS) -f $(FILE) $(DOCKER_HOME)/build
|
||||
@rm ${FILE}
|
||||
@@ -44,9 +44,9 @@ prepare:
|
||||
@echo FROM $(FROM) > ${FILE}
|
||||
@echo ENV MODE $(MODE) >> ${FILE}
|
||||
$(call add,config,/build/config)
|
||||
$(call add,init,/opt/init)
|
||||
$(call add,init,/opt/init)
|
||||
@echo 'RUN chmod +x /opt/init' >> ${FILE}
|
||||
$(call script,prepare)
|
||||
|
||||
clean:
|
||||
@rm -f ${FILE}
|
||||
@rm -rf build
|
||||
|
||||
0
build/boot/automysqlbackup.sh
Normal file → Executable file
0
build/boot/automysqlbackup.sh
Normal file → Executable file
0
build/boot/btsync.sh
Normal file → Executable file
0
build/boot/btsync.sh
Normal file → Executable file
0
build/boot/couchpotato.sh
Normal file → Executable file
0
build/boot/couchpotato.sh
Normal file → Executable file
0
build/boot/hamachi.sh
Normal file → Executable file
0
build/boot/hamachi.sh
Normal file → Executable file
0
build/boot/headphones.sh
Normal file → Executable file
0
build/boot/headphones.sh
Normal file → Executable file
0
build/boot/lighttpd-php.sh
Normal file → Executable file
0
build/boot/lighttpd-php.sh
Normal file → Executable file
0
build/boot/phpmyadmin.sh
Normal file → Executable file
0
build/boot/phpmyadmin.sh
Normal file → Executable file
0
build/boot/sabnzbd.sh
Normal file → Executable file
0
build/boot/sabnzbd.sh
Normal file → Executable file
0
build/boot/sickbeard.sh
Normal file → Executable file
0
build/boot/sickbeard.sh
Normal file → Executable file
0
build/boot/syncthing.sh
Normal file → Executable file
0
build/boot/syncthing.sh
Normal file → Executable file
0
build/boot/transmission.sh
Normal file → Executable file
0
build/boot/transmission.sh
Normal file → Executable file
0
build/boot/webserver.sh
Normal file → Executable file
0
build/boot/webserver.sh
Normal file → Executable file
@@ -1,3 +1,3 @@
|
||||
lighttpd:
|
||||
lighttpd: compile
|
||||
$(call script,$@)
|
||||
$(call runit,$@)
|
||||
@@ -1,2 +1,2 @@
|
||||
php:
|
||||
php: compile
|
||||
$(call script,$@)
|
||||
0
build/runit/btsync
Normal file → Executable file
0
build/runit/btsync
Normal file → Executable file
0
build/runit/collectd
Normal file → Executable file
0
build/runit/collectd
Normal file → Executable file
0
build/runit/couchpotato
Normal file → Executable file
0
build/runit/couchpotato
Normal file → Executable file
0
build/runit/cron
Normal file → Executable file
0
build/runit/cron
Normal file → Executable file
0
build/runit/ftp
Normal file → Executable file
0
build/runit/ftp
Normal file → Executable file
0
build/runit/gmrender
Normal file → Executable file
0
build/runit/gmrender
Normal file → Executable file
0
build/runit/hamachi
Normal file → Executable file
0
build/runit/hamachi
Normal file → Executable file
0
build/runit/headphones
Normal file → Executable file
0
build/runit/headphones
Normal file → Executable file
0
build/runit/lighttpd
Normal file → Executable file
0
build/runit/lighttpd
Normal file → Executable file
0
build/runit/lighttpd-php
Normal file → Executable file
0
build/runit/lighttpd-php
Normal file → Executable file
0
build/runit/minidlna
Normal file → Executable file
0
build/runit/minidlna
Normal file → Executable file
0
build/runit/mysql
Normal file → Executable file
0
build/runit/mysql
Normal file → Executable file
0
build/runit/proxy
Normal file → Executable file
0
build/runit/proxy
Normal file → Executable file
0
build/runit/redis
Normal file → Executable file
0
build/runit/redis
Normal file → Executable file
0
build/runit/sabnzbd
Normal file → Executable file
0
build/runit/sabnzbd
Normal file → Executable file
0
build/runit/sickbeard
Normal file → Executable file
0
build/runit/sickbeard
Normal file → Executable file
0
build/runit/sonarr
Normal file → Executable file
0
build/runit/sonarr
Normal file → Executable file
0
build/runit/sshd
Normal file → Executable file
0
build/runit/sshd
Normal file → Executable file
0
build/runit/syncthing
Normal file → Executable file
0
build/runit/syncthing
Normal file → Executable file
0
build/runit/transmission
Normal file → Executable file
0
build/runit/transmission
Normal file → Executable file
0
build/runit/upnpproxy
Normal file → Executable file
0
build/runit/upnpproxy
Normal file → Executable file
0
build/scripts/automysqlbackup.sh
Normal file → Executable file
0
build/scripts/automysqlbackup.sh
Normal file → Executable file
0
build/scripts/backintime.sh
Normal file → Executable file
0
build/scripts/backintime.sh
Normal file → Executable file
0
build/scripts/btsync.sh
Normal file → Executable file
0
build/scripts/btsync.sh
Normal file → Executable file
0
build/scripts/chrome.sh
Normal file → Executable file
0
build/scripts/chrome.sh
Normal file → Executable file
0
build/scripts/cleanup.sh
Normal file → Executable file
0
build/scripts/cleanup.sh
Normal file → Executable file
0
build/scripts/collectd.sh
Normal file → Executable file
0
build/scripts/collectd.sh
Normal file → Executable file
0
build/scripts/compile.sh
Normal file → Executable file
0
build/scripts/compile.sh
Normal file → Executable file
0
build/scripts/couchpotato.sh
Normal file → Executable file
0
build/scripts/couchpotato.sh
Normal file → Executable file
0
build/scripts/cron.sh
Normal file → Executable file
0
build/scripts/cron.sh
Normal file → Executable file
0
build/scripts/firefox.sh
Normal file → Executable file
0
build/scripts/firefox.sh
Normal file → Executable file
0
build/scripts/ftp.sh
Normal file → Executable file
0
build/scripts/ftp.sh
Normal file → Executable file
0
build/scripts/gmrender.sh
Normal file → Executable file
0
build/scripts/gmrender.sh
Normal file → Executable file
0
build/scripts/hamachi.sh
Normal file → Executable file
0
build/scripts/hamachi.sh
Normal file → Executable file
0
build/scripts/headphones.sh
Normal file → Executable file
0
build/scripts/headphones.sh
Normal file → Executable file
0
build/scripts/init.sh
Normal file → Executable file
0
build/scripts/init.sh
Normal file → Executable file
0
build/scripts/lighttpd-php.sh
Normal file → Executable file
0
build/scripts/lighttpd-php.sh
Normal file → Executable file
5
build/scripts/lighttpd.sh
Normal file → Executable file
5
build/scripts/lighttpd.sh
Normal file → Executable file
@@ -5,14 +5,11 @@ set -x
|
||||
|
||||
## Environment
|
||||
export_env LIGHTTPD_VERSION_MAJOR 1.4
|
||||
export_env LIGHTTPD_VERSION_MINOR 35
|
||||
export_env LIGHTTPD_VERSION_MINOR 39
|
||||
export_env LIGHTTPD_VERSION $LIGHTTPD_VERSION_MAJOR.$LIGHTTPD_VERSION_MINOR
|
||||
export_env LIGHTTPD_CONFIG /etc/lighttpd/lighttpd.conf
|
||||
export_env LIGHTTPD_LOG /host/var/log/lighttpd/error.log
|
||||
|
||||
## SSL
|
||||
apt_install_permanent libssl-dev
|
||||
|
||||
## Lighthttpd
|
||||
apt_install_permanent lighttpd
|
||||
apt-get build-dep -y lighttpd
|
||||
|
||||
0
build/scripts/minidlna.sh
Normal file → Executable file
0
build/scripts/minidlna.sh
Normal file → Executable file
0
build/scripts/mysql.sh
Normal file → Executable file
0
build/scripts/mysql.sh
Normal file → Executable file
15
build/scripts/php.sh
Normal file → Executable file
15
build/scripts/php.sh
Normal file → Executable file
@@ -4,16 +4,17 @@ source /build/config
|
||||
set -x
|
||||
|
||||
## Environment
|
||||
export_env PHP_VERSION 5.6.4
|
||||
export_env PHP_VERSION 5.6.20
|
||||
export_env PHP_CONFIG /usr/local/lib/php.ini
|
||||
export_env PHP_TIMEZONE Europe/Amsterdam
|
||||
export_env PHP_TIMEZONE Europe/London
|
||||
|
||||
## Dependencies
|
||||
apt_install_permanent libxml2-dev libcurl4-openssl-dev libbz2-dev libjpeg-dev libpng12-dev libmcrypt-dev libssl-dev pkg-config
|
||||
|
||||
## PHP
|
||||
apt_install_temporary gcc make
|
||||
cd /opt
|
||||
apt_install_permanent libxml2-dev libcurl4-openssl-dev libbz2-dev libjpeg-dev libpng12-dev libmcrypt-dev
|
||||
wget http://uk1.php.net/get/php-$PHP_VERSION.tar.gz/from/this/mirror -O php-$PHP_VERSION.tar.gz && \
|
||||
tar xzf php-$PHP_VERSION.tar.gz && \
|
||||
wget http://uk1.php.net/get/php-$PHP_VERSION.tar.gz/from/this/mirror -O php-$PHP_VERSION.tar.gz
|
||||
tar xzf php-$PHP_VERSION.tar.gz
|
||||
cd php-$PHP_VERSION
|
||||
./configure --enable-calendar --enable-bcmath --with-bz2 --enable-ctype --without-gdbm --with-iconv --enable-exif --enable-ftp --with-gettext --enable-mbstring --enable-sockets --with-zlib --enable-soap --enable-zip --with-mhash --with-curl --with-gd --with-mysql --with-jpeg-dir --with-openssl --with-mysqli --with-mcrypt
|
||||
make
|
||||
@@ -29,4 +30,4 @@ fi
|
||||
## Configuration
|
||||
cp /opt/php-$PHP_VERSION/php.ini-production $PHP_CONFIG
|
||||
sed -i "s,^;\(date\.timezone\s*=\s*\)$,\1 $PHP_TIMEZONE," $PHP_CONFIG
|
||||
ln -s /usr/local/bin/php-cgi /usr/bin/php-cgi
|
||||
ln -s /usr/local/bin/php-cgi /usr/bin/php-cgi
|
||||
|
||||
9
build/scripts/phpmyadmin.sh
Normal file → Executable file
9
build/scripts/phpmyadmin.sh
Normal file → Executable file
@@ -4,14 +4,15 @@ source /build/config
|
||||
set -x
|
||||
|
||||
## phpMyAdmin
|
||||
export_env PMA_VERSION 4.5.3.1
|
||||
export_env PMA_CONFIG /var/www/config.inc.php
|
||||
export_env PMA_VERSION 4.6.0
|
||||
export_env PMA_ROOT /var/www/html
|
||||
export_env PMA_CONFIG $PMA_ROOT/config.inc.php
|
||||
cd /opt
|
||||
wget https://files.phpmyadmin.net/phpMyAdmin/$PMA_VERSION/phpMyAdmin-$PMA_VERSION-all-languages.tar.gz
|
||||
tar xzf phpMyAdmin-$PMA_VERSION-all-languages.tar.gz phpMyAdmin-$PMA_VERSION-all-languages
|
||||
mv phpMyAdmin-$PMA_VERSION-*/ phpMyAdmin-$PMA_VERSION/
|
||||
rm -r /var/www
|
||||
ln -s /opt/phpMyAdmin-$PMA_VERSION /var/www
|
||||
rm -r $PMA_ROOT/../*
|
||||
ln -s /opt/phpMyAdmin-$PMA_VERSION $PMA_ROOT
|
||||
|
||||
## Remove installation files
|
||||
if [ $MODE == "minimal" ]; then
|
||||
|
||||
9
build/scripts/prepare.sh
Normal file → Executable file
9
build/scripts/prepare.sh
Normal file → Executable file
@@ -15,9 +15,8 @@ echo force-unsafe-io > /etc/dpkg/dpkg.cfg.d/02apt-speedup
|
||||
## http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=594189
|
||||
export_env INITRD no
|
||||
|
||||
## Enable Ubuntu Universe and Multiverse.
|
||||
sed -i 's/^#\s*\(deb.*universe\)$/\1/g' /etc/apt/sources.list
|
||||
sed -i 's/^#\s*\(deb.*multiverse\)$/\1/g' /etc/apt/sources.list
|
||||
## Enable sources in APT
|
||||
echo 'deb-src http://httpredir.debian.org/debian/ jessie main' >> /etc/apt/sources.list
|
||||
apt update
|
||||
|
||||
## Fix some issues with APT packages
|
||||
@@ -41,7 +40,3 @@ apt_install_permanent apt-transport-https
|
||||
|
||||
## Upgrade all packages
|
||||
apt dist-upgrade -y --no-install-recommends
|
||||
|
||||
## Fix locale
|
||||
apt_install_permanent language-pack-en
|
||||
locale-gen en_US
|
||||
0
build/scripts/pulseaudio.sh
Normal file → Executable file
0
build/scripts/pulseaudio.sh
Normal file → Executable file
0
build/scripts/redis.sh
Normal file → Executable file
0
build/scripts/redis.sh
Normal file → Executable file
0
build/scripts/runit.sh
Normal file → Executable file
0
build/scripts/runit.sh
Normal file → Executable file
0
build/scripts/sabnzbd.sh
Normal file → Executable file
0
build/scripts/sabnzbd.sh
Normal file → Executable file
0
build/scripts/sickbeard.sh
Normal file → Executable file
0
build/scripts/sickbeard.sh
Normal file → Executable file
0
build/scripts/sonarr.sh
Normal file → Executable file
0
build/scripts/sonarr.sh
Normal file → Executable file
0
build/scripts/sshd.sh
Normal file → Executable file
0
build/scripts/sshd.sh
Normal file → Executable file
0
build/scripts/subliminal.sh
Normal file → Executable file
0
build/scripts/subliminal.sh
Normal file → Executable file
0
build/scripts/syncthing.sh
Normal file → Executable file
0
build/scripts/syncthing.sh
Normal file → Executable file
0
build/scripts/syslog.sh
Normal file → Executable file
0
build/scripts/syslog.sh
Normal file → Executable file
0
build/scripts/testing.sh
Normal file → Executable file
0
build/scripts/testing.sh
Normal file → Executable file
0
build/scripts/transmission.sh
Normal file → Executable file
0
build/scripts/transmission.sh
Normal file → Executable file
0
build/scripts/upnpproxy.sh
Normal file → Executable file
0
build/scripts/upnpproxy.sh
Normal file → Executable file
0
build/scripts/user.sh
Normal file → Executable file
0
build/scripts/user.sh
Normal file → Executable file
0
build/scripts/utilities.sh
Normal file → Executable file
0
build/scripts/utilities.sh
Normal file → Executable file
0
build/scripts/webserver.sh
Normal file → Executable file
0
build/scripts/webserver.sh
Normal file → Executable file
Reference in New Issue
Block a user