-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDockerfile
35 lines (24 loc) · 830 Bytes
/
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
FROM python:2-alpine
WORKDIR /
RUN apk add --no-cache \
bash \
curl \
git \
jq \
openssh \
make
## Install Pip Packages
RUN pip install --upgrade pip awscli aws_role_credentials oktaauth
## Install Terraform
ENV TERRAFORM_VERSION=0.12.24
RUN curl -L -o ./terraform.zip \
https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip && \
unzip -d /usr/local/bin ./terraform.zip && \
rm terraform.zip
## Install Kubectl
RUN curl -LO https://storage.googleapis.com/kubernetes-release/release/`curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt`/bin/linux/amd64/kubectl && \
chmod +x ./kubectl && \
mv ./kubectl /bin/kubectl
RUN mkdir ~/.aws && touch ~/.aws/credentials
COPY ./get-token.sh /bin/get-token
ENTRYPOINT bash