-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathDockerfile
More file actions
42 lines (37 loc) · 1.55 KB
/
Dockerfile
File metadata and controls
42 lines (37 loc) · 1.55 KB
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
FROM mhart/alpine-node:10
RUN apk add --no-cache tar gzip libc6-compat curl git openssh-client bash g++ ca-certificates python-dev
ARG DOCKER_CHANNEL=edge
ARG DOCKER_VERSION=17.04.0-ce
ARG KUBECTL_VERSION=v1.10.3
ARG RANCHER_CLI_VERSION=v2.0.4
ARG HELM_VERSION=v2.9.1
RUN set -x && \
curl -fSL "https://storage.googleapis.com/kubernetes-helm/helm-${HELM_VERSION}-linux-amd64.tar.gz" -o helm.tar.gz && \
tar -xzvf helm.tar.gz && \
mv linux-amd64/helm /usr/local/bin/helm && \
rm -rf linux-amd64 helm.tar.gz && \
helm version -c && \
curl -fSL "https://releases.rancher.com/cli/${RANCHER_CLI_VERSION}/rancher-linux-amd64-${RANCHER_CLI_VERSION}.tar.gz" -o rancher.tar.gz && \
tar -xzvf rancher.tar.gz && \
mv rancher-${RANCHER_CLI_VERSION}/rancher /usr/local/bin/rancher && \
rm -rf rancher-${RANCHER_CLI_VERSION} rancher.tar.gz && \
rancher -v && \
curl -fL "https://download.docker.com/linux/static/${DOCKER_CHANNEL}/x86_64/docker-${DOCKER_VERSION}.tgz" -o docker.tgz && \
tar -xzvf docker.tgz && \
mv docker/* /usr/local/bin/ && \
rmdir docker && \
rm docker.tgz && \
docker -v && \
curl -LO https://storage.googleapis.com/kubernetes-release/release/${KUBECTL_VERSION}/bin/linux/amd64/kubectl && \
mv kubectl /usr/local/bin/ && \
chmod +x /usr/local/bin/kubectl && \
npm install -g serverless && \
curl -O https://bootstrap.pypa.io/get-pip.py && \
python get-pip.py && \
pip --version && \
pip install awscli && \
aws --version
COPY docker-entrypoint.sh /usr/local/bin/
WORKDIR /root
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["bash"]