It includes new Type() method for Factory, which needed for replacing execdriver.Driver. Signed-off-by: Alexander Morozov <lk4d4@docker.com> Upstream-commit: eade8eac09ad8cfdaf762e88d382daf6017201d7 Component: engine
24 lines
722 B
Docker
24 lines
722 B
Docker
FROM golang:1.4
|
|
|
|
RUN go get golang.org/x/tools/cmd/cover
|
|
|
|
ENV GOPATH $GOPATH:/go/src/github.com/docker/libcontainer/vendor
|
|
RUN go get github.com/docker/docker/pkg/term
|
|
|
|
# setup a playground for us to spawn containers in
|
|
RUN mkdir /busybox && \
|
|
curl -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2014.11/rootfs.tar' | tar -xC /busybox
|
|
|
|
RUN curl -sSL https://raw.githubusercontent.com/docker/docker/master/project/dind -o /dind && \
|
|
chmod +x /dind
|
|
|
|
COPY . /go/src/github.com/docker/libcontainer
|
|
WORKDIR /go/src/github.com/docker/libcontainer
|
|
RUN cp sample_configs/minimal.json /busybox/container.json
|
|
|
|
RUN go get -d -v ./...
|
|
RUN make direct-install
|
|
|
|
ENTRYPOINT ["/dind"]
|
|
CMD ["make", "direct-test"]
|