From f60c7b67ecd5e3e1c52573f4c63d6c8a108cc282 Mon Sep 17 00:00:00 2001 From: Noah Hicks Date: Thu, 5 Sep 2024 13:51:04 -0400 Subject: [PATCH] SWI-4838 || Small update to README and installer (#4) * Use right github url to download tarball * installing latest version * installing latest version * update readme --- README.md | 8 ++++---- vault-shim-installer.sh | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index efd1c4c..bb04eb6 100644 --- a/README.md +++ b/README.md @@ -27,7 +27,7 @@ To install vault-shim, download the installer from GitHub and execute it. ```shell curl -H 'Accept: application/vnd.github.v3.raw' -L -o vault-shim-installer.sh https://raw.githubusercontent.com/Bandwidth/vault-shim//vault-shim-installer.sh chmod +x vault-shim-installer.sh -./vault-shim-installer.sh +./vault-shim-installer.sh "" vault-shim --help ``` @@ -85,8 +85,8 @@ Dockerfile FROM python:3.12 as vault-shim RUN curl -H 'Accept: application/vnd.github.v3.raw' -L -o vault-shim-installer.sh https://raw.githubusercontent.com/Bandwidth/vault-shim//vault-shim-installer.sh -RUN chmod +x "vault-shim-installer.sh" -RUN ./vault-shim-installer.sh +RUN chmod +x "vault-shim-installer.sh" +RUN ./vault-shim-installer.sh "" ########## Second Stage ########## FROM python:3.12 @@ -119,7 +119,7 @@ FROM python:3.12 as vault-shim RUN curl -H 'Accept: application/vnd.github.v3.raw' -L -o vault-shim-installer.sh https://raw.githubusercontent.com/Bandwidth/vault-shim//vault-shim-installer.sh RUN chmod +x "vault-shim-installer.sh" -RUN ./vault-shim-installer.sh +RUN ./vault-shim-installer.sh "" ########## Second Stage ########## FROM example.jfrog.io/eclipse-temurin:19.0.2_7-jre diff --git a/vault-shim-installer.sh b/vault-shim-installer.sh index bf1346f..a8e1d4f 100755 --- a/vault-shim-installer.sh +++ b/vault-shim-installer.sh @@ -15,6 +15,6 @@ echo "os: $os" echo "arch: $arch" # purposefully leaving the filename on the tar so that we know which shim was downloaded if we ever have to shell in and diagnose an issue -curl -H 'Accept: application/vnd.github.v3.raw' -L "https://github.com/Bandwidth/vault-shim/releases/download/v${version}/vault-shim-${version}.tar.gz" --output "/usr/local/bin/vault-shim_${os}_${arch}.tar.gz" +curl -L "https://github.com/Bandwidth/vault-shim/tarball/v${version}" --output "/usr/local/bin/vault-shim_${os}_${arch}.tar.gz" tar xzf "/usr/local/bin/vault-shim_${os}_${arch}.tar.gz" -C "/usr/local/bin"