Skip to content

terraform-alpine: Install terraform into $PATH #3

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

Merged
merged 3 commits into from
Sep 13, 2018

Conversation

wking
Copy link
Contributor

@wking wking commented Aug 16, 2018

Builds on #1; review that first.

Installing it without the leading slash makes invoking terraform via this container more like invoking terraform installed locally on the host system (e.g. via a package manager).

wking added 3 commits August 16, 2018 10:49
Relative paths like 'terraform' are expanded form the current working
directory anyway, so we don't need this extra command substitution.
Installing it without the leading slash makes invoking terraform via
this container more like invoking terraform installed locally on the
host system (e.g. via a package manager).
Alpine already has a /tmp and we don't need to preserve content
terraform writes to /tmp, so there's no need to mount the host's /tmp
into the container.
@sallyom sallyom merged commit 6d9f76b into sallyom:master Sep 13, 2018
wking added a commit to wking/openshift-installer that referenced this pull request Sep 14, 2018
0.11.8 was cut on 2018-08-15 [1,2].

Removing the leading slash is because with v0.11.8, terraform-alpine
is dropping the terraform binary into the PATH [3,4,5].

[1]: https://github.com/hashicorp/terraform/releases/tag/v0.11.8
[2]: https://releases.hashicorp.com/terraform/0.11.8/
[3]: sallyom/scripts-images#3
[4]: sallyom/scripts-images@7221114
[5]: openshift#218 (comment)
wking added a commit to wking/openshift-release that referenced this pull request Sep 14, 2018
0.11.8 was cut on 2018-08-15 [1,2].

The image bump moved the terraform binary into the container's PATH
with sallyom/scripts-images@931c8ee8 (terraform-alpine: Install
terraform into $PATH, 2018-08-16, sallyom/scripts-images#3), but the
installer's tf-fmt.sh was updated to match in
openshift/installer@00323486 (Bump Terraform from 0.11.7 to 0.11.8,
2018-06-09, openshift/installer#218).  Bumping the image here depends
on using that bumped version of tf-fmt.sh.

[1]: https://github.com/hashicorp/terraform/releases/tag/v0.11.8
[2]: https://releases.hashicorp.com/terraform/0.11.8/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants