Skip to content

Commit f9db5e6

Browse files
fix(local): addlicense prereq (#75)
Signed-off-by: Frank Spitulski <fspitulski@nvidia.com>
1 parent 132a0c9 commit f9db5e6

3 files changed

Lines changed: 16 additions & 10 deletions

File tree

README.md

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,24 @@ DSX Exchange provides the repository pieces needed to describe, deploy, and vali
1515

1616
The event bus itself is schema agnostic. Schemas document externally visible contracts; NATS and the auth callout enforce routing, federation, and authorization behavior.
1717

18+
## Requirements
19+
20+
- OS: Linux or macOS with Docker support.
21+
- Tools: `go`, `make`, `helm`, `kubectl`, `kind`, `docker`, `jq`, `yq`, `cfssl`, `nsc`, `addlicense`.
22+
- Kubernetes: local Kind clusters for e2e testing.
23+
- Runtime: Go modules declare their own supported Go versions.
24+
25+
GPU drivers are not required.
26+
1827
## Getting Started
1928

20-
Clone the repository and run the local validation checks:
29+
Clone the repository, install the local e2e prerequisites, and run the local
30+
validation checks:
2131

2232
```bash
2333
git clone https://github.com/NVIDIA/dsx-exchange.git
2434
cd dsx-exchange
35+
make install-e2e-prereqs
2536
make test
2637
```
2738

@@ -35,15 +46,6 @@ Publish looping dummy BMS data into the local CSC MQTT broker:
3546
make dummy-bms
3647
```
3748

38-
## Requirements
39-
40-
- OS: Linux or macOS with Docker support.
41-
- Tools: `go`, `make`, `helm`, `kubectl`, `kind`, `docker`, `jq`, `yq`, `cfssl`, `nsc`, `addlicense`.
42-
- Kubernetes: local Kind clusters for e2e testing.
43-
- Runtime: Go modules declare their own supported Go versions.
44-
45-
GPU drivers are not required.
46-
4749
## Usage
4850

4951
Use the top-level Makefile for common validation:

local/README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ warns when its version differs from the expected version:
2424
- nsc v2.14.0
2525
- nk v0.4.15
2626
- yq v4.53.2
27+
- addlicense v1.2.0
2728

2829
### MacOS Tweaks
2930

local/infra/scripts/install-e2e-prereqs.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ CFSSL_VERSION="${CFSSL_VERSION:-v1.6.5}"
1212
NSC_VERSION="${NSC_VERSION:-v2.14.0}"
1313
NKEYS_VERSION="${NKEYS_VERSION:-v0.4.15}"
1414
YQ_VERSION="${YQ_VERSION:-v4.53.2}"
15+
ADDLICENSE_VERSION="${ADDLICENSE_VERSION:-v1.2.0}"
1516

1617
if [ -z "${E2E_PREREQS_BIN:-}" ]; then
1718
go_bin="$(go env GOBIN 2>/dev/null || true)"
@@ -171,6 +172,7 @@ install_go_tool cfssljson github.com/cloudflare/cfssl/cmd/cfssljson "${CFSSL_VER
171172
install_go_tool nsc github.com/nats-io/nsc/v2 "${NSC_VERSION}" --version
172173
install_go_tool nk github.com/nats-io/nkeys/nk "${NKEYS_VERSION}"
173174
install_go_tool yq github.com/mikefarah/yq/v4 "${YQ_VERSION}" --version
175+
install_go_tool addlicense github.com/google/addlicense "${ADDLICENSE_VERSION}"
174176

175177
kind version
176178
kubectl version --client=true
@@ -180,3 +182,4 @@ cfssl version
180182
nsc --version
181183
nk -v
182184
yq --version
185+
addlicense --help >/dev/null 2>&1

0 commit comments

Comments
 (0)