Skip to content

Commit b31ba4c

Browse files
committed
clean up install script
1 parent 2e45fec commit b31ba4c

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

test/octopus_container_test_framework.go

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,11 +221,10 @@ func (o *OctopusContainerTest) setupOctopus(ctx context.Context, connString stri
221221
Entrypoint: []string{"/bin/sh"},
222222
Cmd: []string{
223223
"-c",
224-
"apt-get update && apt-get install -y curl gnupg lsb-release && " +
225-
"curl -fsSL https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg && " +
226-
"echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main\" | tee /etc/apt/sources.list.d/hashicorp.list > /dev/null && " +
227-
"apt-get update && apt-get install -y terraform && " +
228-
"./install.sh",
224+
"wget -O - https://apt.releases.hashicorp.com/gpg | sudo gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg;",
225+
"echo \"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/hashicorp-archive-keyring.gpg] https://apt.releases.hashicorp.com $(lsb_release -cs) main\" | sudo tee /etc/apt/sources.list.d/hashicorp.list;",
226+
"sudo apt update && sudo apt install terraform;",
227+
"./install.sh",
229228
},
230229
}
231230

0 commit comments

Comments
 (0)