Add to README, add Makefile with development targets

This commit is contained in:
Michael Hohn
2024-06-25 12:04:46 -07:00
committed by =Michael Hohn
parent b4d9833da3
commit 9d1a891c72
2 changed files with 28 additions and 0 deletions

17
Makefile Normal file
View File

@@ -0,0 +1,17 @@
build:
cd cmd/server && GOOS=linux GOARCH=arm64 go build
fullbuild:
cd cmd/server && GOOS=linux GOARCH=arm64 go build -a
sendsubmit:
cd tools && sh ./submit-request.curl
lint:
golangci-lint run cmd/... pkg/...
deps:
godepgraph -maxlevel 4 -nostdlib -i github.com/minio/minio-go ./cmd/server | dot -Tpdf > deps-server.pdf && open deps-server.pdf
depa:
godepgraph -maxlevel 4 -nostdlib -i github.com/minio/minio-go ./cmd/agent | dot -Tpdf > deps-agent.pdf && open deps-agent.pdf

View File

@@ -53,6 +53,17 @@ These are simple steps using a single container.
cd /mrva/mrvacommander/cmd/server/
./server -loglevel=debug -mode=container
1. Test server from the host via
cd ~/work-gh/mrva/mrvacommander-1/tools
sh ./request_16-Jun-2024_11-33-16.curl
1. Follow server logging via
cd ~/work-gh/mrva/mrvacommander-1
docker-compose up -d
docker-compose logs -f server
1. Test server via remote client by following the steps in [gh-mrva](https://github.com/hohn/gh-mrva/blob/connection-redirect/README.org#compacted-edit-run-debug-cycle)
### Some general docker-compose commands