mirror of
				https://github.com/kata-containers/kata-containers.git
				synced 2025-10-31 01:13:02 +00:00 
			
		
		
		
	docs: add rust environment setup for kata 3.0
add more details for rust set up in kata 3.0 install guide Fixes: #4720 Signed-off-by: Zhongtao Hu <zhongtaohu.tim@linux.alibaba.com>
This commit is contained in:
		| @@ -44,6 +44,38 @@ architectures: | |||||||
|  |  | ||||||
| ## Build from source installation | ## Build from source installation | ||||||
|  |  | ||||||
|  | ### Rust Environment Set Up | ||||||
|  |  | ||||||
|  | * Download `Rustup` and install  `Rust` | ||||||
|  |     > **Notes:** | ||||||
|  |     > Rust version 1.58 is needed | ||||||
|  |  | ||||||
|  |     Example for `x86_64` | ||||||
|  |     ``` | ||||||
|  |     $ curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh | ||||||
|  |     $ source $HOME/.cargo/env | ||||||
|  |     $ rustup install 1.58 | ||||||
|  |     $ rustup default 1.58-x86_64-unknown-linux-gnu | ||||||
|  |     ``` | ||||||
|  |  | ||||||
|  | * Musl support for fully static binary | ||||||
|  |      | ||||||
|  |     Example for `x86_64` | ||||||
|  |     ``` | ||||||
|  |     $ rustup target add x86_64-unknown-linux-musl | ||||||
|  |     ``` | ||||||
|  | * [Musl `libc`](http://musl.libc.org/) install | ||||||
|  |  | ||||||
|  |     Example for musl 1.2.3 | ||||||
|  |     ``` | ||||||
|  |     $ wget https://git.musl-libc.org/cgit/musl/snapshot/musl-1.2.3.tar.gz | ||||||
|  |     $ tar vxf musl-1.2.3.tar.gz | ||||||
|  |     $ cd musl-1.2.3/ | ||||||
|  |     $ ./configure --prefix=/usr/local/ | ||||||
|  |     $ make && sudo make install | ||||||
|  |     ``` | ||||||
|  |  | ||||||
|  |  | ||||||
| ### Install Kata 3.0 Rust Runtime Shim | ### Install Kata 3.0 Rust Runtime Shim | ||||||
|  |  | ||||||
| ``` | ``` | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user