*** NOTE: For Mac or linux, make should be installed by default so you can skip steps 2 and 3 ***
- Install Golang: Go Install
- Install Make: GNU Make Install
- Add make to path:
SET PATH=%PATH%;C:\Program Files (x86)\GnuWin32\bin
- Install glide glide
- Windows - install to "C:\glide" and set path
SET PATH=%PATH%;C:\glide
- Mac -
brew install glide
- Windows - install to "C:\glide" and set path
go get github.com/CH-Robinson/vault-elastic-plugin
- Download Vault and extract the compressed file to the location of your choosing
- Add Vault to path
At the root of the project, run
- Unix based:
make build
- Powershell (if make is not in path):
C:\Program Files (x86)\GnuWin32\bin\make.exe build
- bash for Windows (if make is not in path):
/c/Program\ Files\ \(x86\)/GnuWin32/bin/make.exe build
The executable binary is located ../bin/run
- Build it (see above)
- In a new terminal at the root of the project, run Vault:
make run-vault
- In a new terminal run:
- With build and vault DB configuration:
make test-plugin ELASTIC_BASE_URI=<uri> ELASTIC_PASSWORD=<password> ELASTIC_USERNAME=<username> INCLUDE_BUILD=true ENABLE_VAULT_DB=true
- Without build:
make test-plugin ELASTIC_BASE_URI=<uri> ELASTIC_PASSWORD=<password> ELASTIC_USERNAME=<username> INCLUDE_BUILD=false ENABLE_VAULT_DB=true
- With build and vault DB configuration:
- Unix based:
make test
- Powershell (if make is not in path):
C:\Program Files (x86)\GnuWin32\bin\make.exe test
- bash for Windows (if make is not in path):
/c/Program\ Files\ \(x86\)/GnuWin32/bin/make.exe test
- Unix based:
make depends
- Powershell (if make is not in path):
C:\Program Files (x86)\GnuWin32\bin\make.exe depends
- bash for Windows (if make is not in path):
/c/Program\ Files\ \(x86\)/GnuWin32/bin/make.exe depends