-
Notifications
You must be signed in to change notification settings - Fork 999
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kata-ctl: Add the option to install kata-ctl to a user specified directory #6767
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@ngpatel6 lgtm. You can attribute this commit to all the authors that worked on this by using multiple "Co-authored-by: " lines.
Take a look at: https://docs.github.com/en/pull-requests/committing-changes-to-your-project/creating-and-editing-commits/creating-a-commit-with-multiple-authors
That way everyone who worked on the change can receive credit for their work. We have also accepted commits that have multiple "Signed-off-by: " lines in the past.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @ngpatel6.
lgtm
src/tools/kata-ctl/README.md
Outdated
@@ -27,6 +27,11 @@ $ make | |||
$ 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=<install_path> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line cause a static check error: ERROR: shell code in file 'src/tools/kata-ctl/README.md' is not valid
.
Maybe use a real example will pass:
$ make install INSTALL_PATH=/opt/bin
Hi @ngpatel6 - The CI is failing due to the commit format:
See the document below for help on formatting commits for the project. https://github.com/kata-containers/community/blob/main/CONTRIBUTING.md#patch-format Please can you
|
Apologies team, been busy with the normal workload after the hackathon. I'll be addressing these issues this week. Thanks for all the quick feedback! |
@ngpatel6 Any updates on this PR? Would like to get this merged soon. |
Update the kata-ctl install rule to allow it to be installed to a given directory The Makefile was updated to use an INSTALL_PATH variable to track where the kata-ctl binary should be installed. If the user doesn't specify anything, then it uses the default path that cargo uses. Otherwise, it will install it in the directory that the user specified. The README.md file was also updated to show how to use the new option. Fixes kata-containers#5403 Co-authored-by: Cesar Tamayo <cesar.tamayo@intel.com> Co-authored-by: Kevin Mora Jimenez <kevin.mora.jimenez@intel.com> Co-authored-by: Narendra Patel <narendra.g.patel@intel.com> Co-authored-by: Ray Karrenbauer <ray.karrenbauer@intel.com> Co-authored-by: Srinath Duraisamy <srinath.duraisamy@intel.com> Signed-off-by: Narendra Patel <narendra.g.patel@intel.com>
Apologies for the late update. I've made the suggested updates and it should be ready for a final review. |
/test |
Fixes #5403
The Makefile was updated to use an INSTALL_PATH variable to track where the kata-ctl binary should be installed. If the user doesn't specify anything, then it uses the default path that cargo uses. Otherwise, it will install it in the directory that the user specified. The README.md file was also updated to show how to use the new option.
This work was done by pair programming by the following contributors: Cesar Tamayo
Kevin Mora Jimenez
Narendra Patel
Ray Karrenbauer
Srinath Duraisamy
Fixes #5403