Skip to content

Commit

Permalink
Makefile: add install-optimizer subcommand for make
Browse files Browse the repository at this point in the history
Signed-off-by: Bin Tang <tangbin.bin@bytedance.com>
  • Loading branch information
sctb512 committed Feb 14, 2023
1 parent dd2dafa commit 358b9f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,13 @@ install:
@sudo mkdir -p /etc/nydus/certs.d
@if which systemctl; then sudo systemctl enable /etc/systemd/system/nydus-snapshotter.service; sudo systemctl restart nydus-snapshotter; fi

install-optimizer:
sudo install -D -m 755 bin/02-optimizer /opt/nri/plugins/02-optimizer
sudo install -D -m 755 bin/optimizer-server /usr/local/bin/optimizer-server
sudo install -D -m 755 misc/example/02-optimizer.conf /etc/nri/conf.d/02-optimizer.conf

@sudo mkdir -p /opt/nri/optimizer/results

.PHONY: vet
vet:
go vet $(PACKAGES) ./tests
Expand Down

0 comments on commit 358b9f9

Please sign in to comment.