mirror of
https://github.com/rancher/os.git
synced 2025-09-01 14:48:55 +00:00
move dependencies to vendor
This commit is contained in:
45
vendor/github.com/docker/libcompose/Dockerfile
generated
vendored
Normal file
45
vendor/github.com/docker/libcompose/Dockerfile
generated
vendored
Normal file
@@ -0,0 +1,45 @@
|
||||
# This file describes the standard way to build libcompose, using docker
|
||||
FROM golang:1.5.1
|
||||
|
||||
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
|
Reference in New Issue
Block a user