iStoreNAS/runmynas.sh
2024-04-08 16:53:15 +08:00

28 lines
393 B
Bash
Executable File

#!/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 dl
mkdir -p ${CURR}/ib_${TARGET}
docker run -it --rm -u $(id -u):$(id -g) \
-v ${CURR}:/work \
-v ${CURR}/ib_${TARGET}:/work/ib \
-e WORK_TARGET=${TARGET} \
linkease/runmynas:latest