2013-09-12 02:50:26 -04:00
|
|
|
#
|
|
|
|
# This Dockerfile will create an image that allows to generate upstart and
|
|
|
|
# systemd scripts (more to come)
|
|
|
|
#
|
|
|
|
# docker-version 0.6.2
|
|
|
|
#
|
|
|
|
|
|
|
|
FROM ubuntu:12.10
|
2014-03-10 23:26:45 -04:00
|
|
|
MAINTAINER Guillaume J. Charmes <guillaume@docker.com>
|
2013-09-12 02:50:26 -04:00
|
|
|
|
|
|
|
RUN apt-get update && apt-get install -y wget git mercurial
|
|
|
|
|
|
|
|
# Install Go
|
|
|
|
RUN wget --no-check-certificate https://go.googlecode.com/files/go1.1.2.linux-amd64.tar.gz -O go-1.1.2.tar.gz
|
|
|
|
RUN tar -xzvf go-1.1.2.tar.gz && mv /go /goroot
|
|
|
|
RUN mkdir /go
|
|
|
|
|
|
|
|
ENV GOROOT /goroot
|
|
|
|
ENV GOPATH /go
|
|
|
|
ENV PATH $GOROOT/bin:$PATH
|
|
|
|
|
2014-07-24 18:19:50 -04:00
|
|
|
RUN go get github.com/docker/docker && cd /go/src/github.com/docker/docker && git checkout v0.6.3
|
2013-09-12 02:50:26 -04:00
|
|
|
ADD manager.go /manager/
|
|
|
|
RUN cd /manager && go build -o /usr/bin/manager
|
|
|
|
|
|
|
|
ENTRYPOINT ["/usr/bin/manager"]
|
|
|
|
|