Created
March 3, 2019 10:09
-
-
Save gsweene2/aa4229c163d500965e5674ee4418bf7a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pull base image. | |
FROM ubuntu:latest | |
RUN \ | |
# Update | |
apt-get update -y && \ | |
# Install Unzip | |
apt-get install unzip -y && \ | |
# need wget | |
apt-get install wget -y && \ | |
# vim | |
apt-get install vim -y | |
################################ | |
# Install Terraform | |
################################ | |
# Download terraform for linux | |
RUN wget https://releases.hashicorp.com/terraform/0.11.11/terraform_0.11.11_linux_amd64.zip | |
# Unzip | |
RUN unzip terraform_0.11.11_linux_amd64.zip | |
# Move to local bin | |
RUN mv terraform /usr/local/bin/ | |
# Check that it's installed | |
RUN terraform --version | |
################################ | |
# Install python | |
################################ | |
RUN apt-get install -y python3-pip | |
#RUN ln -s /usr/bin/python3 python | |
RUN pip3 install --upgrade pip | |
RUN python3 -V | |
RUN pip --version | |
################################ | |
# Install AWS CLI | |
################################ | |
RUN pip install awscli --upgrade --user | |
# add aws cli location to path | |
ENV PATH=~/.local/bin:$PATH | |
# Adds local templates directory and contents in /usr/local/terrafrom-templates | |
ADD templates /usr/local/bin/templates | |
RUN mkdir ~/.aws && touch ~/.aws/credentials |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
And if you just want terraform + terragrunt