mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 05:43:48 -07:00
Refactor Docker scripts
This commit is contained in:
parent
8e99b792b2
commit
12775960dc
69 changed files with 26 additions and 457 deletions
|
@ -1,12 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. docker_conf
|
||||
# Make sure to connect a Proxmark3 when building if you want to be able to access it from within the Docker instance
|
||||
UART_PORT="$(../../pm3 --list|grep /dev|head -n1|cut -d' ' -f2)"
|
||||
if [ -n "$UART_PORT" ]; then
|
||||
UART_GID="$(stat -c '%g' $UART_PORT)"
|
||||
BUILDARG="--build-arg UART_GID=$UART_GID"
|
||||
else
|
||||
BUILDARG=""
|
||||
fi
|
||||
docker build $BUILDARG -t "$DOCKER_IMAGE" .
|
|
@ -1,2 +0,0 @@
|
|||
# sourceme
|
||||
DOCKER_IMAGE=pm3-arch:1.0
|
|
@ -1,5 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. docker_conf
|
||||
docker rm $(docker ps -aq --filter ancestor="$DOCKER_IMAGE")
|
||||
docker image rm "$DOCKER_IMAGE"
|
|
@ -1,10 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
. docker_conf
|
||||
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 --volume="$(pwd)/../..:/home/rrg/proxmark3" -w /home/rrg/proxmark3 -it "$DOCKER_IMAGE"
|
Loading…
Add table
Add a link
Reference in a new issue