mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
356f7a9136
- we don't need to add a "daemon" user to busybox; it already has one :) - if we split out the "go get" from the "go install", we can have nice clean output on "docker build" of which dependencies we're pulling in and all the packages that get built :) Docker-DCO-1.1-Signed-off-by: Andrew Page <admwiggin@gmail.com> (github: tianon)
22 lines
683 B
Docker
22 lines
683 B
Docker
FROM crosbymichael/golang
|
|
|
|
RUN apt-get update && apt-get install -y gcc
|
|
RUN go get code.google.com/p/go.tools/cmd/cover
|
|
|
|
# setup a playground for us to spawn containers in
|
|
RUN mkdir /busybox && \
|
|
curl -sSL 'https://github.com/jpetazzo/docker-busybox/raw/buildroot-2014.02/rootfs.tar' | tar -xC /busybox
|
|
|
|
RUN curl -sSL https://raw.githubusercontent.com/dotcloud/docker/master/hack/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 go install -v ./...
|
|
|
|
ENTRYPOINT ["/dind"]
|
|
CMD ["go", "test", "-cover", "./..."]
|