Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,16 +39,26 @@ ifdef env
@echo 'export BREV_CONSOLE_URL="https://dev.brev.nvidia.com"' >> brev
@echo 'export BREV_AUTH_URL="https://api.stg.ngc.nvidia.com"' >> brev
@echo 'export BREV_AUTH_ISSUER_URL="https://stg.login.nvidia.com"' >> brev
ifeq ($(env),local-stack)
@echo 'export BREV_API_URL="http://localhost:8080"' >> brev
@echo 'export BREV_PUBLIC_API_URL="http://localhost:8081"' >> brev
@echo 'export BREV_GRPC_URL="localhost:8081"' >> brev
else
@echo 'export BREV_API_URL="https://bd.$(env).brev.nvidia.com"' >> brev
@echo 'export BREV_PUBLIC_API_URL="https://api.$(env).brev.nvidia.com"' >> brev
@echo 'export BREV_GRPC_URL="api.$(env).brev.nvidia.com:443"' >> brev
endif
@echo 'exec "$$(cd "$$(dirname "$$0")" && pwd)/brev-local" "$$@"' >> brev
@chmod +x brev
else
@echo "Building without environment overrides (using config.go defaults)..."
$(_BUILD_PREFIX) go build -o brev -ldflags "-X github.com/brevdev/brev-cli/pkg/cmd/version.Version=${VERSION}"
endif

.PHONY: local-stack
local-stack: ## build a CLI wrapper configured for a running local Brev stack
$(MAKE) local env=local-stack

.PHONY: install-dev
install-dev: fast-build ## go install
cp brev $(shell go env GOPATH)/bin/
Expand Down Expand Up @@ -353,4 +363,4 @@ update-devplane-deps: ## update devplane Buf modules (use: make update-devplane-
go get buf.build/gen/go/brevdev/devplane/connectrpc/go@$$COMMIT; \
go get buf.build/gen/go/brevdev/devplane/protocolbuffers/go@$$COMMIT; \
GOPRIVATE=github.com/brevdev/* go mod tidy; \
echo "Successfully updated to $$COMMIT"
echo "Successfully updated to $$COMMIT"
Loading