Last active
August 29, 2015 14:23
-
-
Save Jaykah/e0f8182710f1a21b5c99 to your computer and use it in GitHub Desktop.
Docker 1.7 Dynamic
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt-get install -qy apt-transport-https pkg-config autoconf automake build-essential libdevmapper-dev golang-gosqlite-dev uuid-dev libattr1-dev zlib1g-dev libacl1-dev e2fslibs-dev libblkid-dev liblzo2-dev asciidoc xmlto --no-install-recommends | |
cd /opt | |
git clone https://kernel.googlesource.com/pub/scm/linux/kernel/git/mason/btrfs-progs | |
cd btrfs-progs/ | |
./autogen.sh | |
./configure | |
make | |
make install | |
apt-get remove -y golang golang-go | |
curl -sSL https://golang.org/dl/go1.4.2.linux-amd64.tar.gz | tar -C /usr/bin/ go/bin/ -xz --strip=2 | |
curl -sSL https://golang.org/dl/go1.4.2.linux-amd64.tar.gz | tar -C /usr/local/ -xz | |
cd /opt | |
git clone https://[email protected]/docker/docker | |
cd docker/ | |
git branch release-v1.7.0 | |
git checkout release-v1.7.0 | |
git checkout v1.7.0 | |
AUTO_GOPATH=1 ./hack/make.sh dynbinary | |
cd /opt/docker/bundles/1.7.0/dynbinary | |
install -m 755 -o root -g root docker-1.7.0 /usr/bin/docker-1.7.0 | |
install -m 755 -o root -g root dockerinit-1.7.0 /usr/bin/dockerinit-1.7.0 | |
cd /usr/bin/ | |
ln -nsf docker-1.7.0 docker | |
ln -nsf dockerinit-1.7.0 dockerinit |
This is intended to be a script executed with proper privileges in unattended mode.
You've used sudo
in the first line so I got the impression that this will just be run as a normal user.
Btw
Short for installing go 1.4.2: curl -sSL https://golang.org/dl/go1.4.2.linux-amd64.tar.gz | tar -C /usr/local -xz
Is not working, have to cherry pick the dir and strip the structure to turn it into a step
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Also,
sudo
formake install
andinstall
commands :)