-
Notifications
You must be signed in to change notification settings - Fork 0
/
Dockerfile
39 lines (33 loc) · 854 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
36
37
38
39
FROM alpine:3.8
ENV PAGER="less -r"
ENV TERRAFORM_VERSION=0.11.13
# Install required packages
RUN set -ex; \
apk --no-cache add \
bash \
less \
curl \
zip \
git \
jq \
groff \
py-pip \
python \
nodejs \
npm; \
npm install -g npm;
# Install aws-shell (which also install aws-cli)
RUN pip install --upgrade \
pip \
aws-shell \
awsebcli; \
echo "complete -C '/usr/bin/aws_completer' aws" >> ~/.bashrc;
# Install Terraform
RUN set -ex; \
curl -o terraform.zip https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip; \
unzip terraform.zip -d /usr/bin; \
rm terraform.zip; \
echo "complete -C '/usr/bin/terraform' terraform" >> ~/.bashrc;
RUN mkdir /code
WORKDIR /code
CMD [ "aws-shell" ]