mirror of
https://github.com/jessfraz/dockerfiles.git
synced 2024-11-23 11:31:49 +01:00
add kubes dev dockerfile
Signed-off-by: Jess Frazelle <jess@mesosphere.com>
This commit is contained in:
parent
05fcfbf3d6
commit
bbbec33544
60
kubes-dev/Dockerfile
Normal file
60
kubes-dev/Dockerfile
Normal 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
|
Loading…
Reference in New Issue
Block a user