Skip to content

Commit

Permalink
Add packer/install target and add version to the Dockerfile.tools file
Browse files Browse the repository at this point in the history
  • Loading branch information
dwc0011 committed Nov 3, 2021
1 parent 9b35332 commit 4eeedf8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions Dockerfile.tools
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

FROM bats/bats:1.5.0 as bats

FROM hashicorp/packer:1.7.8 as packer

FROM hashicorp/terraform:1.0.10 as terraform

FROM koalaman/shellcheck:v0.7.2 as shellcheck
Expand Down
11 changes: 10 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,15 @@ zip/install:
apt-get install zip -y
@ echo "[$@]: Completed successfully!"

packer/install: PACKER_VERSION ?= $(call match_pattern_in_file,$(TARDIGRADE_CI_DOCKERFILE_TOOLS),'hashicorp/packer','$(SEMVER_PATTERN)')
packer/install: | $(BIN_DIR) guard/program/jq
@ echo "[$@]: Installing $(@D) $(PACKER_VERSION)..."
$(call download_hashicorp_release,$(@D).zip,$(@D),$(PACKER_VERSION))
unzip $(@D).zip && rm -f $(@D).zip && chmod +x $(@D)
mv $(@D) "$(BIN_DIR)"
$(@D) --version
@ echo "[$@]: Completed successfully!"

rclone/install: RCLONE_VERSION ?= tags/v$(call match_pattern_in_file,$(TARDIGRADE_CI_DOCKERFILE_TOOLS),'rclone/rclone','$(SEMVER_PATTERN)')
rclone/install: | $(BIN_DIR) guard/program/unzip
@ echo "[$@]: Installing $(@D) $(RCLONE_VERSION) ..."
Expand Down Expand Up @@ -506,6 +515,6 @@ project/validate:
install: terragrunt/install terraform/install shellcheck/install terraform-docs/install
install: bats/install black/install pylint/install pylint-pytest/install pydocstyle/install pytest/install tftest/install
install: ec/install yamllint/install cfn-lint/install yq/install bumpversion/install jq/install
install: docker-compose/install rclone/install
install: docker-compose/install rclone/install packer/install

lint: project/validate terraform/lint sh/lint json/lint docs/lint python/lint ec/lint cfn/lint hcl/lint

0 comments on commit 4eeedf8

Please sign in to comment.