Skip to content

Commit 435b743

Browse files
committed
Add vault to Dockerfile
1 parent 4d4331f commit 435b743

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Dockerfile

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ WORKDIR /home/non-root-user
125125
RUN <<-EOT
126126
set -eux
127127
sudo apt-get update
128-
sudo apt-get install -y curl tar apt-transport-https ca-certificates gnupg socat less debian-goodies autossh ca-certificates-java python3-pip locales jq git gh yq lsb-release lsof
128+
sudo apt-get install -y curl tar apt-transport-https ca-certificates gnupg socat less debian-goodies autossh ca-certificates-java python3-pip locales jq git gh yq lsb-release lsof unzip
129129
sudo locale-gen en_US.UTF-8
130130
sudo git config --system --add safe.directory "*"
131131

@@ -154,8 +154,19 @@ RUN <<-EOT
154154
sudo apt-get update
155155
sudo pip3 install --break-system-packages awscli
156156
sudo pip3 cache purge
157+
158+
# datadog-ci
157159
sudo curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
158160
sudo chmod +x /usr/local/bin/datadog-ci
161+
162+
# vault
163+
VAULT_VERSION=1.20.4
164+
curl -fsSL "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip" -o vault.zip
165+
unzip vault.zip
166+
sudo mv vault /usr/local/bin/vault
167+
chmod +x /usr/local/bin/vault
168+
rm vault.zip
169+
159170
sudo apt-get clean
160171
sudo rm -rf /var/lib/apt/lists/*
161172
EOT

0 commit comments

Comments
 (0)