add kubes dev dockerfile

Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
Jess Frazelle 2016-05-08 14:32:41 -07:00
parent 05fcfbf3d6
commit bbbec33544
No known key found for this signature in database
GPG Key ID: 18F3685C0022BFF3

60
kubes-dev/Dockerfile Normal file
View File

@ -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