forked from enarx/enarx
-
Notifications
You must be signed in to change notification settings - Fork 1
Document instructions for running Enarx on server3 #2
Copy link
Copy link
Open
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
This issue documents the current working setup for building and running Enarx on server3.
Adjust rust toolchain
# Under /home/<usr>
rustup install nightly-2024-11-01
rustup override set nightly-2024-11-01Install required targets
rustup target add wasm32-wasi x86_64-unknown-linux-musl x86_64-unknown-none --toolchain nightly-2024-11-01Build and install Enarx
cd enarx/ # Navigate to the Enarx project directory
cargo install --locked --bin enarx --path ./
# Add Enarx binary to PATH
export PATH="$HOME/.cargo/bin:$PATH"
# Confirm installation
which enarxCreate test case
cd ../
cargo init --bin hello-world
cd hello-world/
echo 'fn main() { println!("Hello, Enarx!"); }' > src/main.rs
# Compile to regular wasm binary
cargo build --release --target=wasm32-wasiRun
enarx run <absolute_path_of_executables>Example:
enarx run /home/alice/hello-world/target/wasm32-wasi/release/hello-world.wasmReactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation