Files
docker-deployment/build/config
Rik Veenboer a307062d5b Import some files and transform to working containers for:
* mysql
* lighttpd (with php and mysql)
* transmission
* sabnzbd
* sickbeard
* couchpotato
* headphones
* btsync
2015-01-14 15:17:36 +00:00

31 lines
605 B
Plaintext

export LC_ALL=C
export DEBIAN_FRONTEND=noninteractive
apt_get_install='apt-get install -y --no-install-recommends'
apt_get_install_permanent() {
echo $@ >> /build/permanent
$apt_get_install "$@"
}
apt_get_install_temporary() {
echo $@ >> /build/temporary
$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
}