2024-04-08 16:28:36 +08:00
|
|
|
#!/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`
|
2024-04-08 16:53:15 +08:00
|
|
|
mkdir -p dl
|
2024-04-08 16:28:36 +08:00
|
|
|
mkdir -p ${CURR}/ib_${TARGET}
|
|
|
|
|
2024-04-08 16:53:15 +08:00
|
|
|
docker run -it --rm -u $(id -u):$(id -g) \
|
2024-04-08 16:28:36 +08:00
|
|
|
-v ${CURR}:/work \
|
|
|
|
-v ${CURR}/ib_${TARGET}:/work/ib \
|
|
|
|
-e WORK_TARGET=${TARGET} \
|
|
|
|
linkease/runmynas:latest
|
|
|
|
|