Skip to content

Commit 96589ef

Browse files
authoredApr 16, 2024··
fix: graalvm image terraform install (#806)
* fix: graalvm image terraform install * fix: use modified hashicorp repo configuration
1 parent 3416405 commit 96589ef

File tree

3 files changed

+17
-0
lines changed

3 files changed

+17
-0
lines changed
 

‎.cloudbuild/graalvm-a.Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
3737
RUN yum install -y docker-engine docker-cli
3838

3939
# Install terraform
40+
# See also https://www.hashicorp.com/official-packaging-guide
41+
COPY hashicorp.repo /etc/yum.repos.d/hashicorp.repo
4042
RUN yum -y install terraform
4143

4244
# Install jq

‎.cloudbuild/graalvm-b.Dockerfile

+2
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ ENV PATH $PATH:/usr/local/gcloud/google-cloud-sdk/bin
3737
RUN yum install -y docker-engine docker-cli
3838

3939
# Install terraform
40+
# See also https://www.hashicorp.com/official-packaging-guide
41+
COPY hashicorp.repo /etc/yum.repos.d/hashicorp.repo
4042
RUN yum -y install terraform
4143

4244
# Install jq

‎.cloudbuild/hashicorp.repo

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
[hashicorp]
2+
name=Hashicorp Stable - $basearch
3+
baseurl=https://rpm.releases.hashicorp.com/RHEL/7/$basearch/stable
4+
enabled=1
5+
gpgcheck=1
6+
gpgkey=https://rpm.releases.hashicorp.com/gpg
7+
8+
[hashicorp-test]
9+
name=Hashicorp Test - $basearch
10+
baseurl=https://rpm.releases.hashicorp.com/RHEL/7/$basearch/test
11+
enabled=0
12+
gpgcheck=1
13+
gpgkey=https://rpm.releases.hashicorp.com/gpg

0 commit comments

Comments
 (0)
Please sign in to comment.