mirror of
https://github.com/luzifer-docker/jenkins.git
synced 2024-12-29 23:51:15 +00:00
Install Vault globally
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
ddd0086cfc
commit
17359701d1
1 changed files with 7 additions and 0 deletions
7
build.sh
7
build.sh
|
@ -33,6 +33,13 @@ apt-get install -y --no-install-recommends ${install_packages[@]}
|
||||||
echo "jenkins ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.d/jenkins
|
echo "jenkins ALL=(ALL) NOPASSWD: ALL" >>/etc/sudoers.d/jenkins
|
||||||
usermod -a -G docker jenkins
|
usermod -a -G docker jenkins
|
||||||
|
|
||||||
|
# Install Vault for global usage
|
||||||
|
VAULT_VERSION=$(curl -sSfL "https://lv.luzifer.io/catalog-api/vault/latest.txt?p=version")
|
||||||
|
curl -sSfLo vault.zip "https://releases.hashicorp.com/vault/${VAULT_VERSION}/vault_${VAULT_VERSION}_linux_amd64.zip"
|
||||||
|
unzip vault.zip
|
||||||
|
rm vault.zip
|
||||||
|
install -Dm0755 -t /usr/local/bin vault
|
||||||
|
|
||||||
# Cleanup
|
# Cleanup
|
||||||
apt-get purge -y ${build_packages[@]}
|
apt-get purge -y ${build_packages[@]}
|
||||||
apt-get autoremove --purge -y
|
apt-get autoremove --purge -y
|
||||||
|
|
Loading…
Reference in a new issue