Skip to content

Commit

Permalink
Add runsc binary path environment variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eureka-cpu committed Jul 17, 2024
1 parent 35c4ff5 commit 90632df
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions deployments/lasr_node/common.nix
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,8 @@ let
compute_rpc_url=ws://localhost:9125
storage_rpc_url=ws://localhost:9126
batch_interval=180
ipfs_path="/app/tmp/kubo"
runsc_bin_path="${pkgs.gvisor}/bin/runsc"
echo "set -o noclobber" > ~/.bashrc
echo "export SECRET_KEY=$secret_key" >> ~/.bashrc
echo "export BLOCKS_PROCESSED_PATH=$block_path" >> ~/.bashrc
Expand All @@ -135,6 +137,8 @@ let
echo "export COMPUTE_RPC_URL=$compute_rpc_url" >> ~/.bashrc
echo "export STORAGE_RPC_URL=$storage_rpc_url" >> ~/.bashrc
echo "export BATCH_INTERVAL=$batch_interval" >> ~/.bashrc
echo "export IPFS_PATH=$ipfs_path" >> ~/.bashrc
echo "export RUNSC_BIN_PATH=$runsc_bin_path" >> ~/.bashrc
echo "[[ \$- == *i* && -f \"\$HOME/.bashrc\" ]] && source \"\$HOME/.bashrc\"" > ~/.bash_profile
source ~/.bashrc
Expand Down Expand Up @@ -320,6 +324,7 @@ in
storage_rpc_url=ws://localhost:9126
batch_interval=180
ipfs_path="/app/tmp/kubo"
runsc_bin_path="${pkgs.gvisor}/bin/runsc"
echo "set -o noclobber" > ~/.bashrc
echo "export SECRET_KEY=$secret_key" >> ~/.bashrc
echo "export BLOCKS_PROCESSED_PATH=$block_path" >> ~/.bashrc
Expand All @@ -329,6 +334,7 @@ in
echo "export STORAGE_RPC_URL=$storage_rpc_url" >> ~/.bashrc
echo "export BATCH_INTERVAL=$batch_interval" >> ~/.bashrc
echo "export IPFS_PATH=$ipfs_path" >> ~/.bashrc
echo "export RUNSC_BIN_PATH=$runsc_bin_path" >> ~/.bashrc
echo "[[ \$- == *i* && -f \"\$HOME/.bashrc\" ]] && source \"\$HOME/.bashrc\"" > ~/.bash_profile
echo "Successfully initialized lasr_node environment."
'';
Expand Down
6 changes: 3 additions & 3 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 90632df

Please sign in to comment.