run_container.sh 300 B

123456789101112
  1. #!/bin/sh
  2. if [ -z "$BT_APP" ]; then
  3. echo The enironment variable BT_APP must be set to the name of the crate to build.
  4. exit 1
  5. fi
  6. mkdir -p ~/.config/blocktree/$BT_APP
  7. sudo docker run --rm --name $BT_APP\
  8. -v ~/.config/blocktree:/app/state\
  9. --env RUST_LOG=warn\
  10. $BT_APP:latest "$@"