2013-04-22 22:29:12 -07:00
|
|
|
# This will build a container capable of producing an official binary build of docker and
|
|
|
|
# uploading it to S3
|
2013-05-01 22:05:36 -07:00
|
|
|
maintainer Solomon Hykes <solomon@dotcloud.com>
|
2013-04-22 22:29:12 -07:00
|
|
|
from ubuntu:12.10
|
|
|
|
run apt-get update
|
2013-04-23 22:57:34 -07:00
|
|
|
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q s3cmd
|
|
|
|
# Packages required to checkout and build docker
|
|
|
|
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q golang
|
|
|
|
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q git
|
|
|
|
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q build-essential
|
|
|
|
# Packages required to build an ubuntu package
|
|
|
|
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q debhelper
|
|
|
|
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q autotools-dev
|
2013-05-01 22:05:36 -07:00
|
|
|
add . /src
|
2013-05-02 05:56:51 +00:00
|
|
|
run cp /src/dockerbuilder /usr/local/bin/ && chmod +x /usr/local/bin/dockerbuilder
|
|
|
|
run cp /src/fake_initctl /usr/local/bin/initctl && chmod +x /usr/local/bin/initctl
|
2013-05-01 22:05:36 -07:00
|
|
|
run cp /src/s3cfg /.s3cfg
|
2013-04-23 22:57:34 -07:00
|
|
|
run DEBIAN_FRONTEND=noninteractive apt-get install -y -q devscripts
|
2013-05-02 05:56:51 +00:00
|
|
|
cmd ["dockerbuilder"]
|