Refactor Docker scripts

This commit is contained in:
Philippe Teuwen committed 2024-12-18 22:24:20 +01:00
1 parent 8e99b792b2
commit 12775960dc
69 files changed
+26 -457

No files matched your search

Executable
+14
View File
@@ -0,0 +1,14 @@
#!/bin/bash
if [ ! -e docker_conf.inc ]; then
echo "This script must be run from within one of the subfolders"
exit 1
fi
. docker_conf.inc
UART_PORT="$(../../pm3 --list|grep dev|head -n1|cut -d' ' -f2)"
if [ -n "$UART_PORT" ]; then
DEV="--device=/dev/tty0 --device=$UART_PORT"
else
DEV=""
fi
docker run $DEV $DOCKER_PLATFORM --volume="$(pwd)/../..:/home/rrg/proxmark3" -w /home/rrg/proxmark3 -it "$DOCKER_IMAGE"