From bbbec33544dfd4574c402dc657738a15adb39db3 Mon Sep 17 00:00:00 2001 From: Jess Frazelle Date: Sun, 8 May 2016 14:32:41 -0700 Subject: [PATCH] add kubes dev dockerfile Signed-off-by: Jess Frazelle --- kubes-dev/Dockerfile | 60 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 kubes-dev/Dockerfile diff --git a/kubes-dev/Dockerfile b/kubes-dev/Dockerfile new file mode 100644 index 0000000..345d06a --- /dev/null +++ b/kubes-dev/Dockerfile @@ -0,0 +1,60 @@ +FROM debian:jessie + +# Packaged dependencies +RUN apt-get update && apt-get install -y \ + autoconf \ + automake \ + ca-certificates \ + curl \ + g++ \ + git \ + libtool \ + make \ + rsync \ + unzip \ + --no-install-recommends \ + && rm -rf /var/lib/apt/lists/* + +# Install Go +ENV GO_VERSION 1.6.2 +RUN curl -fsSL "https://storage.googleapis.com/golang/go${GO_VERSION}.linux-amd64.tar.gz" \ + | tar -xzC /usr/local +ENV PATH /go/bin:/usr/local/go/bin:$PATH +ENV GOPATH /go:/go/src/k8s.io/kubernetes/Godeps/_workspace + +# Install google/protobuf +ENV PROTOBUF_VERSION v3.0.0-beta-2 +RUN set -x \ + && export PROTOBUF_PATH="$(mktemp -d)" \ + && curl -fsSL "https://github.com/google/protobuf/archive/${PROTOBUF_VERSION}.tar.gz" \ + | tar -xzC "$PROTOBUF_PATH" --strip-components=1 \ + && ( \ + cd "$PROTOBUF_PATH" \ + && ./autogen.sh \ + && ./configure --prefix=/usr/local \ + && make \ + && make install \ + && ldconfig \ + ) \ + && rm -rf "$PROTOBUFPATH" + +RUN curl -sSL https://get.docker.com/builds/Linux/x86_64/docker-latest.tgz | tar -xvz \ + -C /usr/bin --strip-components 1 \ + && chmod +x /usr/bin/docker* + +ENV DOWNLOAD_ETCD_VERSION 2.3.3 +RUN curl -sSL https://github.com/coreos/etcd/releases/download/v${DOWNLOAD_ETCD_VERSION}/etcd-v${DOWNLOAD_ETCD_VERSION}-linux-amd64.tar.gz -o /tmp/etcd.tar.gz \ + && mkdir -p /tmp/etcd \ + && ( \ + cd /tmp \ + && tar -xv --strip-components 1 -f etcd.tar.gz -C /tmp/etcd \ + && mv /tmp/etcd/etcd* /usr/local/bin \ + ) \ + && rm -rf /tmp/etcd* + +RUN go get github.com/golang/protobuf/proto \ + && go get github.com/golang/protobuf/protoc-gen-go \ + && go get github.com/golang/lint/golint \ + && go get github.com/tools/godep + +WORKDIR /go/src/k8s.io/kubernetes