mirror of https://github.com/docker/docs.git
contrib/debootstrap: Add initial support for Tanglu
This will add support for Tanglu, a Debian based Linux-distribution. Docker-DCO-1.1-Signed-off-by: Matthias Klumpp <matthias@tenstral.net> (github: Ximion)
This commit is contained in:
parent
f1167096ca
commit
4bfc8e9722
|
@ -44,6 +44,8 @@ debianStable=wheezy
|
||||||
debianUnstable=sid
|
debianUnstable=sid
|
||||||
# this should match the name found at http://releases.ubuntu.com/
|
# this should match the name found at http://releases.ubuntu.com/
|
||||||
ubuntuLatestLTS=precise
|
ubuntuLatestLTS=precise
|
||||||
|
# this should match the name found at http://releases.tanglu.org/
|
||||||
|
tangluLatest=aequorea
|
||||||
|
|
||||||
while getopts v:i:a:p:dst name; do
|
while getopts v:i:a:p:dst name; do
|
||||||
case "$name" in
|
case "$name" in
|
||||||
|
@ -201,6 +203,13 @@ if [ -z "$strictDebootstrap" ]; then
|
||||||
s/ $suite-updates main/ ${suite}-security main/
|
s/ $suite-updates main/ ${suite}-security main/
|
||||||
" etc/apt/sources.list
|
" etc/apt/sources.list
|
||||||
;;
|
;;
|
||||||
|
Tanglu)
|
||||||
|
# add the updates repository
|
||||||
|
if [ "$suite" = "$tangluLatest" ]; then
|
||||||
|
# ${suite}-updates only applies to stable Tanglu versions
|
||||||
|
sudo sed -i "p; s/ $suite main$/ ${suite}-updates main/" etc/apt/sources.list
|
||||||
|
fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
@ -248,6 +257,19 @@ else
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
;;
|
;;
|
||||||
|
Tanglu)
|
||||||
|
if [ "$suite" = "$tangluLatest" ]; then
|
||||||
|
# tag latest
|
||||||
|
$docker tag $repo:$suite $repo:latest
|
||||||
|
fi
|
||||||
|
if [ -r etc/lsb-release ]; then
|
||||||
|
lsbRelease="$(. etc/lsb-release && echo "$DISTRIB_RELEASE")"
|
||||||
|
if [ "$lsbRelease" ]; then
|
||||||
|
# tag specific Tanglu version number, if available (1.0, 2.0, etc.)
|
||||||
|
$docker tag $repo:$suite $repo:$lsbRelease
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
;;
|
||||||
esac
|
esac
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in New Issue