runmynas.sh script

This commit is contained in:
janson 2024-04-08 16:28:36 +08:00
parent 4b5b50ed65
commit 70ed138dde
1 changed files with 26 additions and 0 deletions

26
runmynas.sh Executable file
View File

@ -0,0 +1,26 @@
#!/bin/bash
TARGET=$1
case ${TARGET} in
x86_64)
;;
rk35xx)
;;
rk33xx)
;;
*)
echo "Please choose target: x86_64 or rk35xx or rk33xx"
exit 1
;;
esac
CURR=`pwd`
mkdir -p ${CURR}/ib_${TARGET}
docker run -it --rm \
-v ${CURR}:/work \
-v ${CURR}/ib_${TARGET}:/work/ib \
-e WORK_TARGET=${TARGET} \
linkease/runmynas:latest