-
Notifications
You must be signed in to change notification settings - Fork 97
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #277 from kubernetes-simulator/fix-tf-version
fix: tf bundle version
- Loading branch information
Showing
1 changed file
with
15 additions
and
15 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -32,10 +32,11 @@ ENV PATH $PATH:/usr/local/go/bin | |
# Install terraform | ||
ENV GOPATH /go | ||
ENV PATH $PATH:/go/bin | ||
|
||
ENV GO111MODULE on | ||
RUN mkdir -p /go/ && \ | ||
chdir /go && \ | ||
go get -d -v github.com/hashicorp/terraform && \ | ||
go install ./src/github.com/hashicorp/terraform/tools/terraform-bundle | ||
go get github.com/hashicorp/terraform/tools/[email protected] | ||
|
||
COPY ./terraform/deployments/AWS/terraform-bundle.hcl . | ||
RUN terraform-bundle package terraform-bundle.hcl && \ | ||
mkdir -p terraform-bundle && \ | ||
|
@@ -93,18 +94,17 @@ COPY --chown=1000 launch-files/bashrc /app/launch-files/bashrc | |
|
||
USER ${lint_user} | ||
|
||
# Lint Dockerfiles | ||
RUN hadolint Dockerfile \ | ||
&& hadolint attack/Dockerfile \ | ||
# Lint shell scripts | ||
&& shellcheck scripts/* \ | ||
&& shellcheck attack/scripts/* \ | ||
&& shellcheck simulation-scripts/perturb.sh \ | ||
&& shellcheck kubesim \ | ||
&& shellcheck Bastion/bashrc \ | ||
&& shellcheck InternalHost/bashrc \ | ||
&& shellcheck Kubernetes/bashrc \ | ||
&& shellcheck launch-files/bashrc | ||
# Lint Dockerfiles & shell scripts | ||
RUN hadolint Dockerfile && \ | ||
hadolint attack/Dockerfile && \ | ||
shellcheck scripts/* && \ | ||
shellcheck attack/scripts/* && \ | ||
shellcheck simulation-scripts/perturb.sh && \ | ||
shellcheck kubesim && \ | ||
shellcheck Bastion/bashrc && \ | ||
shellcheck InternalHost/bashrc && \ | ||
shellcheck Kubernetes/bashrc && \ | ||
shellcheck launch-files/bashrc | ||
|
||
WORKDIR /app/scenario-tools | ||
|
||
|