1
0
mirror of https://github.com/rancher/os.git synced 2025-07-13 06:34:04 +00:00
os/vendor/github.com/docker/libcompose/Dockerfile
Ivan Mikushin 349df9adc7 Bump libcompose
Replace empty slices with nils in unmarshaled libcompose datatypes.
2015-12-18 20:21:40 +05:00

46 lines
1.3 KiB
Docker

# This file describes the standard way to build libcompose, using docker
FROM golang:1.5.2
RUN apt-get update && apt-get install -y \
iptables \
build-essential \
--no-install-recommends
# Install build dependencies
RUN go get github.com/mitchellh/gox
RUN go get github.com/aktau/github-release
RUN go get golang.org/x/tools/cmd/cover
RUN go get github.com/golang/lint/golint
RUN go get golang.org/x/tools/cmd/vet
# Compile Go for cross compilation
ENV DOCKER_CROSSPLATFORMS \
linux/386 linux/arm \
darwin/amd64 darwin/386 \
freebsd/amd64 freebsd/386 freebsd/arm \
windows/amd64 windows/386
# Which docker version to test on
ENV DOCKER_VERSION 1.8.3
# enable GO15VENDOREXPERIMENT
ENV GO15VENDOREXPERIMENT 1
# Download docker
RUN set -ex; \
curl https://get.docker.com/builds/Linux/x86_64/docker-${DOCKER_VERSION} -o /usr/local/bin/docker-${DOCKER_VERSION}; \
chmod +x /usr/local/bin/docker-${DOCKER_VERSION}
# Set the default Docker to be run
RUN ln -s /usr/local/bin/docker-${DOCKER_VERSION} /usr/local/bin/docker
ENV COMPOSE_BINARY /go/src/github.com/docker/libcompose/libcompose-cli
ENV USER root
WORKDIR /go/src/github.com/docker/libcompose
# Wrap all commands in the "docker-in-docker" script to allow nested containers
ENTRYPOINT ["script/dind"]
COPY . /go/src/github.com/docker/libcompose