Skip to content

Commit

Permalink
[nc] remove sudo context
Browse files Browse the repository at this point in the history
Signed-off-by: Nic Cheneweth <[email protected]>
  • Loading branch information
ncheneweth committed May 20, 2024
1 parent a8f986f commit b681bed
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
13 changes: 6 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ RUN apk add --no-cache \
tar==1.35-r2 \
gzip==1.13-r0 \
ca-certificates==20240226-r0 \
sudo==1.9.15_p2-r0 \
tzdata==2024a-r0 \
gettext-dev==0.22.3-r0 \
libintl==0.22.3-r0 \
Expand All @@ -45,7 +44,7 @@ RUN apk add --no-cache \
curl==8.5.0-r0 \
libcurl==8.5.0-r0 \
curl-dev==8.5.0-r0 \
openssl-dev==3.1.4-r6 \
openssl-dev==3.1.5-r0 \
wget==1.21.4-r0 \
unzip==6.0-r14 \
zip==3.0-r12 \
Expand All @@ -66,12 +65,12 @@ RUN apk add --no-cache \
rm op.zip && rm op.sig && \
curl -L https://github.com/tellerops/teller/releases/download/v${TELLER_VERSION}/teller_${TELLER_VERSION}_Linux_x86_64.tar.gz --output teller_${TELLER_VERSION}_Linux_x86_64.tar.gz && \
tar -xzf teller_${TELLER_VERSION}_Linux_x86_64.tar.gz && \
sudo mv teller /usr/local/bin/teller && \
mv teller /usr/local/bin/teller && \
rm teller_${TELLER_VERSION}_Linux_x86_64.tar.gz && \
curl -SLO "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip" > "vault_${VAULT_VERSION}_linux_amd64.zip" && \
sudo unzip "vault_${VAULT_VERSION}_linux_amd64.zip" -d /usr/local/bin && \
sudo rm "vault_${VAULT_VERSION}_linux_amd64.zip" && \
unzip "vault_${VAULT_VERSION}_linux_amd64.zip" -d /usr/local/bin && \
rm "vault_${VAULT_VERSION}_linux_amd64.zip" && \
curl -L -o buildevents https://github.com/honeycombio/buildevents/releases/download/v${BUILDEVENTS_VERSION}/buildevents-linux-amd64 && \
chmod +x buildevents && \
sudo mv buildevents /usr/local/bin/buildevents && \
sudo rc-update add docker boot
mv buildevents /usr/local/bin/buildevents && \
rc-update add docker boot
8 changes: 4 additions & 4 deletions test/gha-container-base-image.bats
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
#!/usr/bin/env bats

@test "sudo version" {
run bash -c "docker exec gha-container-base-image sudo --version"
[[ "${output}" =~ "1.9" ]]
}
# @test "sudo version" {
# run bash -c "docker exec gha-container-base-image sudo --version"
# [[ "${output}" =~ "1.9" ]]
# }

@test "gettext install" {
run bash -c "docker exec gha-container-base-image less --version"
Expand Down

0 comments on commit b681bed

Please sign in to comment.