Last active
April 27, 2019 15:20
-
-
Save diegopacheco/09ddbf6482f7ffa1bdaa505e1be26230 to your computer and use it in GitHub Desktop.
Dockerfile - Terraform + Amazon Linux
This file contains 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
FROM amazonlinux:latest | |
WORKDIR / | |
RUN yum update -y | |
RUN yum group install "Development Tools" -y | |
RUN yum install -y git zip wget | |
RUN wget https://releases.hashicorp.com/terraform/0.11.7/terraform_0.11.7_linux_amd64.zip && unzip terraform_0.11.7_linux_amd64.zip | |
RUN chmod +x terraform | |
COPY . . | |
RUN chmod +x /run.sh | |
CMD ["/run.sh"] |
This file contains 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
#!/bin/bash | |
cd /app/ | |
/terraform init | |
/terraform apply \ | |
-auto-approve \ | |
-input=false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment