mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Stream and unpack the tarball on the fly
We don't need temporary files. Also, get the tarball from get.docker.io instead of Dropbox.
This commit is contained in:
parent
53e2e8209f
commit
af2aac8736
1 changed files with 4 additions and 14 deletions
18
install.sh
18
install.sh
|
@ -2,18 +2,13 @@
|
||||||
# This script is meant for quick & easy install via 'curl URL-OF-SCRIPT | bash'
|
# This script is meant for quick & easy install via 'curl URL-OF-SCRIPT | bash'
|
||||||
# Courtesy of Jeff Lindsay <progrium@gmail.com>
|
# Courtesy of Jeff Lindsay <progrium@gmail.com>
|
||||||
|
|
||||||
cd /tmp
|
|
||||||
|
|
||||||
echo "Ensuring dependencies are installed..."
|
echo "Ensuring dependencies are installed..."
|
||||||
apt-get --yes install lxc wget bsdtar 2>&1 > /dev/null
|
apt-get --yes install lxc wget bsdtar 2>&1 > /dev/null
|
||||||
|
|
||||||
echo "Downloading docker binary..."
|
echo "Downloading docker binary and uncompressing into /usr/local/bin..."
|
||||||
wget -q https://dl.dropbox.com/u/20637798/docker.tar.gz 2>&1 > /dev/null
|
curl -s http://get.docker.io/builds/$(uname -s)/$(uname -m)/docker-master.tgz |
|
||||||
tar -xf docker.tar.gz 2>&1 > /dev/null
|
tar -C /usr/local/bin --strip-components=1 -zxf- \
|
||||||
|
docker-master/docker docker-master/dockerd
|
||||||
echo "Installing into /usr/local/bin..."
|
|
||||||
mv docker/docker /usr/local/bin
|
|
||||||
mv dockerd/dockerd /usr/local/bin
|
|
||||||
|
|
||||||
if [[ -f /etc/init/dockerd.conf ]]
|
if [[ -f /etc/init/dockerd.conf ]]
|
||||||
then
|
then
|
||||||
|
@ -26,10 +21,5 @@ fi
|
||||||
echo "Restarting dockerd..."
|
echo "Restarting dockerd..."
|
||||||
restart dockerd > /dev/null
|
restart dockerd > /dev/null
|
||||||
|
|
||||||
echo "Cleaning up..."
|
|
||||||
rmdir docker
|
|
||||||
rmdir dockerd
|
|
||||||
rm docker.tar.gz
|
|
||||||
|
|
||||||
echo "Finished!"
|
echo "Finished!"
|
||||||
echo
|
echo
|
||||||
|
|
Loading…
Add table
Reference in a new issue