Skip to content

Commit ed5a91d

Browse files
committed
build-docs: allocator: Added the new allocator into all build flows and also every documentation to guide how to build the allocator
Since the new allocator is a binary i put it's build flow with the nitro-cli and vsock-proxy. Also added to the how to install and setup nitro-cli documentations.
1 parent 2380976 commit ed5a91d

8 files changed

+12
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ This repository contains a collection of tools and commands used for managing th
5757
### How to install (GitHub sources):
5858
1. Clone the repository.
5959
2. Set NITRO_CLI_INSTALL_DIR to the desired location, by default everything will be installed in build/install
60-
3. Run 'make nitro-cli && make vsock-proxy && make install'.
60+
3. Run 'make nitro-cli && make vsock-proxy && make nitro-enclaves-allocator && make install'.
6161
4. [Rerun after reboot] Source the script ${NITRO_CLI_INSTALL_DIR}/etc/profile.d/nitro-cli-env.sh.
6262
5. [Rerun after reboot] Preallocate resources for the enclaves(s).
6363
For example, to configure 2 vCPUs and 256 Mib for enclave use:

SPECS/aws-nitro-enclaves-cli.spec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,7 @@ cp tools/cargo_vendor_config_template .cargo/config
7979
%build
8080
make nitro-cli-native
8181
make vsock-proxy-native
82+
make nitro-enclaves-allocator-native
8283

8384

8485
%install

docs/centos_stream_8_how_to_install_nitro_cli_from_github_sources.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,8 @@ $ make nitro-cli
157157

158158
$ make vsock-proxy
159159

160+
$ make nitro-enclaves-allocator
161+
160162
$ sudo make NITRO_CLI_INSTALL_DIR=/ install
161163

162164
$ source /etc/profile.d/nitro-cli-env.sh

docs/fedora_34_how_to_install_nitro_cli_from_github_sources.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,8 @@ $ make nitro-cli
165165

166166
$ make vsock-proxy
167167

168+
$ make nitro-enclaves-allocator
169+
168170
$ sudo make NITRO_CLI_INSTALL_DIR=/ install
169171

170172
$ source /etc/profile.d/nitro-cli-env.sh

docs/rhel_8.4_how_to_install_nitro_cli_from_github_sources.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ $ make nitro-cli
161161

162162
$ make vsock-proxy
163163

164+
$ make nitro-enclaves-allocator
165+
164166
$ sudo make NITRO_CLI_INSTALL_DIR=/ install
165167

166168
$ source /etc/profile.d/nitro-cli-env.sh

docs/ubuntu_20.04_how_to_install_nitro_cli_from_github_sources.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ $ make nitro-cli
164164

165165
$ make vsock-proxy
166166

167+
$ make nitro-enclaves-allocator
168+
167169
$ sudo make NITRO_CLI_INSTALL_DIR=/ install
168170

169171
$ source /etc/profile.d/nitro-cli-env.sh

install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ update_git() {
3333
}
3434

3535
install_nitro_cli() {
36-
make nitro-cli && make vsock-proxy && make install
36+
make nitro-cli && make vsock-proxy && make nitro-enclaves-allocator && make install
3737
source "${NITRO_CLI_INSTALL_DIR}"/etc/profile.d/nitro-cli-env.sh
3838
echo "Nitro CLI is now installed. We recommend adding ${NITRO_CLI_INSTALL_DIR}/etc/profile.d/nitro-cli-env.sh in your .bashrc file"
3939
}

scripts/lib_tests.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,6 +108,7 @@ build_and_install() {
108108
make nitro_enclaves
109109
make nitro-cli
110110
make vsock-proxy
111+
make nitro-enclaves-allocator
111112
make install
112113
}
113114

0 commit comments

Comments
 (0)