appmgr: only mount binds if installed

also improve build scripts
This commit is contained in:
Aiden McClelland
2021-03-12 10:10:39 -07:00
committed by Keagan McClelland
parent 424afb3d1c
commit 09f858d28d
4 changed files with 34 additions and 2 deletions

View File

@@ -3,6 +3,11 @@
set -e
shopt -s expand_aliases
if [ "$0" != "./build-prod.sh" ]; then
>&2 echo "Must be run from appmgr directory"
exit 1
fi
alias 'rust-arm-builder'='docker run --rm -it -v "$HOME/.cargo/registry":/root/.cargo/registry -v "$(pwd)":/home/rust/src start9/rust-arm-cross:latest'
cd ..