Skip to content

Commit f1a5337

Browse files
committed
trying to fix CMD command to install terraform
1 parent 2de83d6 commit f1a5337

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

test/octopus_container_test_framework.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -219,13 +219,10 @@ func (o *OctopusContainerTest) setupOctopus(ctx context.Context, connString stri
219219
network,
220220
},
221221
Cmd: []string{
222-
"/bin/bash",
222+
"/bin/sh",
223223
"-c",
224-
"wget -O - https://apt.releases.hashicorp.com/gpg | 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\" | tee /etc/apt/sources.list.d/hashicorp.list;",
226-
"apt update -y && apt install terraform -y",
227-
},
228-
}
224+
"wget -O - https://apt.releases.hashicorp.com/gpg | gpg --dearmor -o /usr/share/keyrings/hashicorp-archive-keyring.gpg && 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 && apt update -y && apt install terraform -y",
225+
}}
229226

230227
req.Env = o.AddCustomEnvironment(req.Env)
231228

0 commit comments

Comments
 (0)