mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-08-10 04:18:26 +00:00
Merge pull request #6767 from ngpatel6/Issue-5403
kata-ctl: Add the option to install kata-ctl to a user specified directory
This commit is contained in:
commit
47a02dcc7f
@ -10,6 +10,7 @@ PROJECT_URL = https://github.com/kata-containers
|
|||||||
PROJECT_COMPONENT = kata-ctl
|
PROJECT_COMPONENT = kata-ctl
|
||||||
|
|
||||||
TARGET = $(PROJECT_COMPONENT)
|
TARGET = $(PROJECT_COMPONENT)
|
||||||
|
INSTALL_PATH = $(HOME)/.cargo
|
||||||
|
|
||||||
VERSION_FILE := ./VERSION
|
VERSION_FILE := ./VERSION
|
||||||
export VERSION := $(shell grep -v ^\# $(VERSION_FILE))
|
export VERSION := $(shell grep -v ^\# $(VERSION_FILE))
|
||||||
@ -55,7 +56,7 @@ test:
|
|||||||
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo test --target $(TRIPLE) $(if $(findstring release,$(BUILD_TYPE)),--release) $(EXTRA_RUSTFEATURES) -- --nocapture
|
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo test --target $(TRIPLE) $(if $(findstring release,$(BUILD_TYPE)),--release) $(EXTRA_RUSTFEATURES) -- --nocapture
|
||||||
|
|
||||||
install:
|
install:
|
||||||
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo install --locked --target $(TRIPLE) --path .
|
@RUSTFLAGS="$(EXTRA_RUSTFLAGS) --deny warnings" cargo install --locked --target $(TRIPLE) --path . --root $(INSTALL_PATH)
|
||||||
|
|
||||||
check: standard_rust_check
|
check: standard_rust_check
|
||||||
|
|
||||||
|
@ -27,6 +27,11 @@ $ make
|
|||||||
$ make install
|
$ make install
|
||||||
```
|
```
|
||||||
|
|
||||||
|
If you would like to install the tool to a specific directory, then you can provide it through the `INSTALL_PATH` variable.
|
||||||
|
```bash
|
||||||
|
$ make install INSTALL_PATH=/path/to/your/custom/install/directory
|
||||||
|
```
|
||||||
|
|
||||||
## Run the tool
|
## Run the tool
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
|
Loading…
Reference in New Issue
Block a user