Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
T
Terraform Images
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
rc
Terraform Images
Commits
9b820e44
Unverified
Commit
9b820e44
authored
4 years ago
by
Willian Paixao
Browse files
Options
Downloads
Patches
Plain Diff
feat: Allow multi-arch image
parent
ae896090
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Dockerfile
+3
-1
3 additions, 1 deletion
Dockerfile
with
3 additions
and
1 deletion
Dockerfile
+
3
−
1
View file @
9b820e44
...
@@ -2,13 +2,15 @@ ARG BASE_IMAGE
...
@@ -2,13 +2,15 @@ ARG BASE_IMAGE
FROM
$BASE_IMAGE
FROM
$BASE_IMAGE
ARG
TARGETARCH
ARG
TERRAFORM_BINARY_VERSION
ARG
TERRAFORM_BINARY_VERSION
RUN
apk add
--no-cache
jq curl git openssh
RUN
apk add
--no-cache
jq curl git openssh
WORKDIR
/tmp
WORKDIR
/tmp
RUN
(
curl
-sLo
terraform.zip
"https://releases.hashicorp.com/terraform/
${
TERRAFORM_BINARY_VERSION
}
/terraform_
${
TERRAFORM_BINARY_VERSION
}
_linux_amd64.zip"
&&
\
RUN
(
curl
-sLo
terraform.zip
"https://releases.hashicorp.com/terraform/
${
TERRAFORM_BINARY_VERSION
}
/terraform_
${
TERRAFORM_BINARY_VERSION
}
_linux_
${
TARGETARCH
:-
amd64
}
.zip"
&&
\
unzip terraform.zip
&&
\
unzip terraform.zip
&&
\
rm
terraform.zip
&&
\
rm
terraform.zip
&&
\
mv
./terraform /usr/local/bin/terraform
\
mv
./terraform /usr/local/bin/terraform
\
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment