Skip to content

Commit e6c3b68

Browse files
author
James Belchamber
committed
Using commit hashes instead of tags, installing tofu properly
1 parent 1399d4f commit e6c3b68

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.devcontainer/Dockerfile

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,17 @@ FROM docker.io/golang:latest
33

44
RUN apt-get update &&\
55
apt-get upgrade -y &&\
6-
apt-get install -y apt-transport-https &&\
7-
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | gpg --dearmor -o /usr/share/keyrings/cloud.google.gpg &&\
8-
echo "deb [signed-by=/usr/share/keyrings/cloud.google.gpg] https://packages.cloud.google.com/apt cloud-sdk main" | tee -a /etc/apt/sources.list.d/google-cloud-sdk.list &&\
6+
apt-get install -y apt-transport-https ca-certificates curl gnupg &&\
7+
apt-get clean
8+
9+
RUN install -m 0755 -d /etc/apt/keyrings &&\
10+
curl -fsSL https://get.opentofu.org/opentofu.gpg | tee /etc/apt/keyrings/opentofu.gpg >/dev/null &&\
11+
curl -fsSL https://packages.opentofu.org/opentofu/tofu/gpgkey | gpg --no-tty --batch --dearmor -o /etc/apt/keyrings/opentofu-repo.gpg >/dev/null &&\
12+
chmod a+r /etc/apt/keyrings/opentofu.gpg /etc/apt/keyrings/opentofu-repo.gpg &&\
13+
echo "deb [signed-by=/etc/apt/keyrings/opentofu.gpg,/etc/apt/keyrings/opentofu-repo.gpg] https://packages.opentofu.org/opentofu/tofu/any/ any main" | tee /etc/apt/sources.list.d/opentofu.list > /dev/null &&\
14+
chmod a+r /etc/apt/sources.list.d/opentofu.list &&\
915
apt-get update &&\
10-
apt-get install google-cloud-cli -y &&\
16+
apt-get install -y tofu &&\
1117
apt-get clean
1218

1319
RUN curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh &&\

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.3.0
3+
rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # v5.0.0
44
hooks:
55
- id: end-of-file-fixer
66
- id: trailing-whitespace
77
- id: check-case-conflict
88
- id: check-merge-conflict
99
- id: detect-private-key
1010
- repo: https://github.com/antonbabenko/pre-commit-terraform
11-
rev: v1.99.3
11+
rev: 2f8bda194a420ad77a050a9de627d77a74841fdc # v1.99.4
1212
hooks:
1313
- id: terraform_fmt
1414
- id: terraform_validate

0 commit comments

Comments
 (0)