File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ WORKDIR /home/non-root-user
125125RUN <<-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
@@ -149,13 +149,25 @@ COPY --from=default-jdk /usr/lib/jvm /usr/lib/jvm
149149# Install the following tools
150150# - awscli: AWS CLI
151151# - datadog-ci: Datadog CI tool
152+ # - vault: tool for managing secrets: https://datadoghq.atlassian.net/wiki/spaces/RUNTIME/pages/2701559033/Vault
152153RUN <<-EOT
153154 set -eux
154155 sudo apt-get update
155156 sudo pip3 install --break-system-packages awscli
156157 sudo pip3 cache purge
158+
159+ # datadog-ci
157160 sudo curl -L --fail "https://github.com/DataDog/datadog-ci/releases/latest/download/datadog-ci_linux-x64" --output "/usr/local/bin/datadog-ci"
158161 sudo chmod +x /usr/local/bin/datadog-ci
162+
163+ # vault installation inspired by https://github.com/DataDog/datadog-agent-buildimages/blob/main/agent-deploy/Dockerfile
164+ VAULT_VERSION=1.20.4
165+ curl -fsSL "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip" -o vault.zip
166+ unzip vault.zip
167+ sudo mv vault /usr/local/bin/vault
168+ chmod +x /usr/local/bin/vault
169+ rm vault.zip
170+
159171 sudo apt-get clean
160172 sudo rm -rf /var/lib/apt/lists/*
161173EOT
Original file line number Diff line number Diff line change @@ -200,6 +200,7 @@ function do_inner_describe() {
200200 echo " * $( docker --version) "
201201 echo " * $( docker compose version) "
202202 echo " * datadog-ci $( datadog-ci version) "
203+ echo " * vault $( vault --version) "
203204 echo
204205 echo " ## JDKs"
205206 echo
You can’t perform that action at this time.
0 commit comments