-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathDockerfile
More file actions
24 lines (23 loc) · 900 Bytes
/
Dockerfile
File metadata and controls
24 lines (23 loc) · 900 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM golang:1.4
WORKDIR /go/src/github.com/docker
RUN git clone https://github.com/deis/swarm
WORKDIR /go/src/github.com/docker/swarm
RUN git fetch origin nodefailover
RUN git checkout nodefailover
ENV GOPATH /go/src/github.com/docker/swarm/Godeps/_workspace:$GOPATH
RUN CGO_ENABLED=0 go install -v -a -tags netgo -ldflags "-w -X github.com/docker/swarm/version.GITCOMMIT `git rev-parse --short HEAD`"
WORKDIR /go/src/github.com/deis
RUN git clone https://github.com/deis/deis
WORKDIR /go/src/github.com/deis/deis
RUN git fetch origin swarm
RUN git checkout swarm
WORKDIR /go/src/github.com/deis/deis/swarm
RUN mv /go/bin/swarm /bin/deis-swarm
RUN chmod +x /bin/deis-swarm
ENV GOPATH /go/src/github.com/deis/deis/Godeps/_workspace:$GOPATH
RUN CGO_ENABLED=0 go install -v -a "github.com/deis/deis/swarm"
ENV SWARM_HOST :2375
EXPOSE 2375
VOLUME $HOME/.deis-swarm
ENTRYPOINT ["swarm"]
CMD ["--help”]