Skip to content

Commit

Permalink
SWI-4838 || Small update to README and installer (#4)
Browse files Browse the repository at this point in the history
* Use right github url to download tarball

* installing latest version

* installing latest version

* update readme
  • Loading branch information
noahg1 authored Sep 5, 2024
1 parent a60ced3 commit f60c7b6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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/<VERSION>/vault-shim-installer.sh
chmod +x vault-shim-installer.sh
./vault-shim-installer.sh
./vault-shim-installer.sh "<VERSION>"

vault-shim --help
```
Expand Down Expand Up @@ -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/<VERSION>/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 "<VERSION>"

########## Second Stage ##########
FROM python:3.12
Expand Down Expand Up @@ -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/<VERSION>/vault-shim-installer.sh
RUN chmod +x "vault-shim-installer.sh"
RUN ./vault-shim-installer.sh
RUN ./vault-shim-installer.sh "<VERSION>"

########## Second Stage ##########
FROM example.jfrog.io/eclipse-temurin:19.0.2_7-jre
Expand Down
2 changes: 1 addition & 1 deletion vault-shim-installer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"

0 comments on commit f60c7b6

Please sign in to comment.