2015-01-06 05:23:34 +08:00
|
|
|
FROM golang:1.4
|
2014-07-17 05:28:31 +08:00
|
|
|
|
2015-05-16 06:10:27 +08:00
|
|
|
RUN echo "deb http://ftp.us.debian.org/debian testing main contrib" >> /etc/apt/sources.list
|
2015-05-19 05:52:26 +08:00
|
|
|
RUN apt-get update && apt-get install -y iptables criu=1.5.2-1 && rm -rf /var/lib/apt/lists/*
|
2015-05-16 06:10:27 +08:00
|
|
|
|
2014-11-14 12:49:50 +08:00
|
|
|
RUN go get golang.org/x/tools/cmd/cover
|
2014-07-17 05:28:31 +08:00
|
|
|
|
2015-06-22 10:29:59 +08:00
|
|
|
ENV GOPATH $GOPATH:/go/src/github.com/opencontainers/runc/libcontainer/vendor
|
2014-10-17 08:00:16 +08:00
|
|
|
RUN go get github.com/docker/docker/pkg/term
|
|
|
|
|
2014-07-24 08:14:27 +08:00
|
|
|
# setup a playground for us to spawn containers in
|
|
|
|
RUN mkdir /busybox && \
|
2015-03-13 05:54:43 +08:00
|
|
|
curl -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2014.11/rootfs.tar' | tar -xC /busybox
|
2014-07-24 08:14:27 +08:00
|
|
|
|
2015-03-17 00:43:45 +08:00
|
|
|
RUN curl -sSL https://raw.githubusercontent.com/docker/docker/master/hack/dind -o /dind && \
|
2014-07-24 08:14:27 +08:00
|
|
|
chmod +x /dind
|
|
|
|
|
2015-06-22 10:29:59 +08:00
|
|
|
COPY . /go/src/github.com/opencontainers/runc/libcontainer
|
|
|
|
WORKDIR /go/src/github.com/opencontainers/runc/libcontainer
|
2014-07-24 08:14:27 +08:00
|
|
|
RUN cp sample_configs/minimal.json /busybox/container.json
|
|
|
|
|
2014-08-05 03:31:58 +08:00
|
|
|
RUN make direct-install
|
2014-07-17 05:28:31 +08:00
|
|
|
|
2014-07-24 08:14:27 +08:00
|
|
|
ENTRYPOINT ["/dind"]
|
2014-08-05 03:31:58 +08:00
|
|
|
CMD ["make", "direct-test"]
|