Skip to content

Commit 463fc89

Browse files
committed
Rust installation
Signed-off-by: Lazar Cvetković <l.cvetkovic.997@gmail.com>
1 parent a814da1 commit 463fc89

2 files changed

Lines changed: 10 additions & 6 deletions

File tree

scripts/common.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ function SetupWorkerNodes() {
9191
#RUNTIME=$(RemoteExec $1 "cat /cluster_manager/cmd/worker_node/config_cluster.yaml | yq '.criType'")
9292

9393
#if [[ "$RUNTIME" == "dandelion" ]]; then
94+
RemoteExec $1 "rm /dev/shm/shm_0"
9495
RemoteExec $1 "cd ~/dandelion; RUSTFLAGS='-C target-feature=+crt-static' cargo build --bin mmu_worker --features mmu --target \$(arch)-unknown-linux-gnu"
9596
RemoteExec $1 "tmux new -s dandelion -d"
9697
RemoteExec $1 "tmux send-keys -t dandelion 'cd ~/dandelion; RUST_LOG=debug cargo run --bin dandelion_server -F mmu,reqwest_io' ENTER"

scripts/setup_node.sh

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,13 @@ sudo mv release-${latest}-$(uname -m) /usr/local/bin/firecracker
5858
sudo mv /usr/local/bin/firecracker/firecracker-${latest}-${ARCH} /usr/local/bin/firecracker/firecracker
5959
echo "export PATH=$PATH:/usr/local/bin/firecracker" | sudo tee -a /etc/profile
6060

61-
sudo apt install cargo snapd -y
62-
sudo snap install yq
61+
# Install Rust
62+
wget https://static.rust-lang.org/rustup.sh
63+
chmod +x rustup.sh
64+
./rustup.sh -y
65+
66+
#sudo apt install snapd -y
67+
#sudo snap install yq
6368

6469
# Copy systemd services
6570
sudo cp -a ~/cluster_manager/scripts/systemd/* /etc/systemd/system/
@@ -74,7 +79,5 @@ if [ "$NODE_PURPOSE" = "CONTROL_PLANE" ]; then
7479
SetupLoadBalancer
7580
fi
7681

77-
if [ "$NODE_PURPOSE" = "INVITRO"]; then
78-
RemoteExec $1 '[ ! -d ~/invitro ] && git clone https://github.com/vhive-serverless/invitro.git'
79-
rsync -av invitro_traces/* $INVITRO:invitro/invitro_traces
80-
fi
82+
RemoteExec $1 '[ ! -d ~/invitro ] && git clone https://github.com/vhive-serverless/invitro.git'
83+
#rsync -av invitro_traces/* $INVITRO:invitro/invitro_traces

0 commit comments

Comments
 (0)