Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add terraform to docker mvn container #2

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,18 @@ RUN set -ex && cd ~ \
&& "/tmp/sam-installation/install" \
&& sam --version

# install terraform for lambda releases
# this is currently under docker-mvn due to a circleci CLI executor limit of 1
# https://releases.hashicorp.com/terraform/
ARG TERRAFORM_VERSION=1.9.5
ARG TERRAFORM_SHA256SUM=9cf727b4d6bd2d4d2908f08bd282f9e4809d6c3071c3b8ebe53558bee6dc913b

RUN set -ex && cd ~ \
&& curl -sSLO https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip \
&& [ $(sha256sum terraform_${TERRAFORM_VERSION}_linux_amd64.zip | cut -f1 -d' ') = ${TERRAFORM_SHA256SUM} ] \
&& unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -d /usr/local/bin \
&& rm terraform_${TERRAFORM_VERSION}_linux_amd64.zip

# apt-get all the things
# Notes:
# - Add all apt sources first
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ This creates a docker image built off of CircleCI's most basic convenience image
- Github CLI
- Maven CLI
- SAM CLI
- Terraform

It is intended to provide support necessary for Java applications within MilMove.

Expand Down
1 change: 1 addition & 0 deletions scripts/test
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ function test_latest() {
docker run -it "milmove/docker-mvn:${tag}" java --version
docker run -it "milmove/docker-mvn:${tag}" mvn --version
docker run -it "milmove/docker-mvn:${tag}" sam --version
docker run -it "milmove/docker-mvn:${tag}" terraform --version

echo "Passed ${tag}"
}
Expand Down