Skip to content

Commit b3542e2

Browse files
committed
Terraform install
1 parent afcf3dc commit b3542e2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

test/octopus_container_test_framework.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,15 @@ func (o *OctopusContainerTest) setupOctopus(ctx context.Context, connString stri
218218
Networks: []string{
219219
network,
220220
},
221+
Entrypoint: []string{"/bin/bash"},
222+
Cmd: []string{
223+
"-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",
229+
},
221230
}
222231

223232
req.Env = o.AddCustomEnvironment(req.Env)

0 commit comments

Comments
 (0)