Skip to content

Commit

Permalink
makefile: add install target to Makefile
Browse files Browse the repository at this point in the history
Thus to make it more convenient for users to install and
setup nydus-snapshotter

Signed-off-by: Changwei Ge <[email protected]>
  • Loading branch information
changweige committed Feb 11, 2022
1 parent 3e1584e commit 8c93df5
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 @@ -21,6 +21,13 @@ clear:
rm -f bin/*
rm -rf _out

.PHONY: install
install: static-release
sudo install -D -m 755 bin/containerd-nydus-grpc /usr/local/bin/containerd-nydus-grpc
sudo mkdir -p /etc/nydus
sudo cp misc/snapshotter/nydusd-config.json /etc/nydus/config.json
sudo systemctl enable ${PWD}/misc/snapshotter/nydus-snapshotter.service

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

0 comments on commit 8c93df5

Please sign in to comment.