forked from kubeflow/arena
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile.install
39 lines (22 loc) · 1.15 KB
/
Dockerfile.install
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
FROM golang:1.10-stretch as build
RUN mkdir -p /go/src/github.com/kubeflow/arena
WORKDIR /go/src/github.com/kubeflow/arena
COPY . .
RUN make
RUN wget https://storage.googleapis.com/kubernetes-helm/helm-v2.14.1-linux-amd64.tar.gz && \
tar -xvf helm-v2.14.1-linux-amd64.tar.gz && \
mv linux-amd64/helm /usr/local/bin/helm && \
chmod u+x /usr/local/bin/helm
ENV K8S_VERSION v1.11.2
RUN curl -o /usr/local/bin/kubectl https://storage.googleapis.com/kubernetes-release/release/${K8S_VERSION}/bin/linux/amd64/kubectl && chmod +x /usr/local/bin/kubectl
FROM centos:7
COPY --from=build /go/src/github.com/kubeflow/arena/bin/arena /usr/local/bin/arena
COPY --from=build /usr/local/bin/helm /usr/local/bin/helm
COPY --from=build /go/src/github.com/kubeflow/arena/kubernetes-artifacts /root/kubernetes-artifacts
COPY --from=build /usr/local/bin/kubectl /usr/local/bin/kubectl
COPY --from=build /go/src/github.com/kubeflow/arena/charts /charts
ADD run_arena.sh /usr/local/bin
RUN chmod u+x /usr/local/bin/run_arena.sh
RUN yum install bash-completion -y && \
echo "source <(arena completion bash)" >> ~/.bashrc
ENTRYPOINT ["/usr/local/bin/run_arena.sh"]