add 1panel script

This commit is contained in:
悟空的日常镜像仓库 2024-05-29 15:44:27 +08:00
parent d9cbcdac83
commit c5da871e36

27
1p.sh Executable file
View File

@ -0,0 +1,27 @@
#!/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 --rm -u $(id -u):$(id -g) \
-v ${CURR}:/work \
-v ${CURR}/ib_${TARGET}:/work/ib \
-e WORK_TARGET=${TARGET} \
linkease/runmynas:latest