1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

use Go 1.0.3 to build docker

This commit is contained in:
unclejack 2013-05-02 15:27:37 +03:00
parent ff5e238de9
commit 528da23d6a
2 changed files with 7 additions and 1 deletions

View file

@ -4,8 +4,12 @@ maintainer Solomon Hykes <solomon@dotcloud.com>
from ubuntu:12.10 from ubuntu:12.10
run apt-get update run apt-get update
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q s3cmd run DEBIAN_FRONTEND=noninteractive apt-get install -y -q s3cmd
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q curl
# Packages required to checkout and build docker # Packages required to checkout and build docker
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q golang run curl -s -o /go.tar.gz https://go.googlecode.com/files/go1.0.3.linux-amd64.tar.gz
run tar -C /usr/local -xzf /go.tar.gz
run echo "export PATH=$PATH:/usr/local/go/bin" > /.bashrc
run echo "export PATH=$PATH:/usr/local/go/bin" > /.bash_profile
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q git run DEBIAN_FRONTEND=noninteractive apt-get install -y -q git
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q build-essential run DEBIAN_FRONTEND=noninteractive apt-get install -y -q build-essential
# Packages required to build an ubuntu package # Packages required to build an ubuntu package

View file

@ -2,6 +2,8 @@
set -x set -x
set -e set -e
export PATH=$PATH:/usr/local/go/bin
PACKAGE=github.com/dotcloud/docker PACKAGE=github.com/dotcloud/docker
if [ $# -gt 1 ]; then if [ $# -gt 1 ]; then