aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tools/dist_test/Dockerfile.local
blob: e23fa034a3d886dc3700093a5a8ff1de11db4f31 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
FROM jpetazzo/dind

MAINTAINER Shanqing Cai <cais@google.com>

RUN apt-get update

RUN apt-get install -y --no-install-recommends \
    build-essential \
    dbus \
    git \
    software-properties-common

# Install the latest golang
RUN wget https://storage.googleapis.com/golang/go1.4.2.linux-amd64.tar.gz
RUN tar -C /usr/local -xzf go1.4.2.linux-amd64.tar.gz
RUN rm -f go1.4.2.linux-amd64.tar.gz
RUN echo 'PATH=/usr/local/go/bin:${PATH}' >> /root/.bashrc

# Create shared storage on host. k8s pods (docker containers) created on the
# host can share it and all have read/write access.
RUN mkdir /shared
RUN chmod 666 /shared

ADD . /var/tf-k8s