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

terraform and tools to work with it are added to image #264

Closed
wants to merge 1 commit into from
Closed
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
13 changes: 13 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ RUN apk update && \

RUN curl -sSL https://apk.cloudposse.com/install.sh | bash

## Install terraform-config-inspect (required for bats tests)
ENV GO111MODULE="on"
RUN go get github.com/hashicorp/terraform-config-inspect && \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We can soon replace this with the package. cloudposse/packages#748

mv $(go env GOPATH)/bin/terraform-config-inspect /usr/local/bin/

## Install as packages

## Codefresh required additional libraries for alpine
Expand All @@ -32,9 +37,17 @@ RUN apk --update --no-cache add \
helm@cloudposse \
helmfile@cloudposse \
codefresh@cloudposse \
vert@cloudposse \
yq@cloudposse && \
sed -i /PATH=/d /etc/profile

# Install terraform 0.11 for backwards compatibility
RUN apk add terraform@cloudposse \
terraform-0.11@cloudposse \
terraform-0.12@cloudposse \
terraform-0.13@cloudposse \
terraform-0.14@cloudposse

ADD ./ /build-harness/

ENV INSTALL_PATH /usr/local/bin
Expand Down