-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathDockerfile
45 lines (35 loc) · 1.39 KB
/
Dockerfile
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
40
41
42
43
44
45
FROM ubuntu:16.04
RUN apt-get update && \
apt-get install -y curl && \
curl -sL https://deb.nodesource.com/setup_6.x | bash - && \
apt-get install -y nodejs
RUN apt-get update && \
apt-get install -y \
nodejs libffi-dev openssh-server \
libffi-dev libssl-dev wget jq python-pip
RUN pip install -U pip
RUN pip install azure-cli==2.0.28 && \
pip install awscli==1.11.107 && \
npm install --no-optional -g [email protected]
ENV NASH_VERSION=v0.6
ENV NASHPATH=/root/nash
ENV NASHROOT=/root/nashroot
ENV PATH=${PATH}:${NASHROOT}/bin
RUN curl https://raw.githubusercontent.com/NeowayLabs/nash/master/hack/install/unix.sh | bash -s ${NASH_VERSION}
# Go is not required by klb itself on runtime, but having multiple
# Dockerfiles introduced space for bugs involving differences
# between the dev and final prod images. So we decided it was not
# worth to maintain two images.
ENV GO_VERSION="1.10"
ENV GOROOT="/goroot"
ENV PATH=${PATH}:${GOROOT}/bin
RUN cd /tmp && \
wget https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz && \
tar -xf go$GO_VERSION.linux-amd64.tar.gz && \
mkdir -p $GOROOT && \
mv ./go/* $GOROOT
COPY ./tools/azure/createsp.sh ${NASHPATH}/bin/azure-createsp.sh
COPY ./tools/azure/getcredentials.sh ${NASHPATH}/bin/azure-getcredentials.sh
COPY ./aws ${NASHPATH}/lib/klb/aws
COPY ./azure ${NASHPATH}/lib/klb/azure
ENV PATH $PATH:${NASHPATH}/bin