-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
all Docker envs: add support for connection to host device
- Loading branch information
Showing
73 changed files
with
307 additions
and
63 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
docker build -t "pm3-arch:1.0" . | ||
. docker_conf | ||
UART_PORT="$(../../pm3 --list|head -n1|cut -d' ' -f2)" | ||
UART_GID="$(stat -c '%g' $UART_PORT)" | ||
docker build --build-arg UART_GID="$UART_GID" -t "$DOCKER_IMAGE" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# sourceme | ||
DOCKER_IMAGE=pm3-arch:1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker rm $(docker ps -aq --filter ancestor=pm3-arch:1.0) | ||
docker image rm pm3-arch:1.0 | ||
. docker_conf | ||
docker rm $(docker ps -aq --filter ancestor="$DOCKER_IMAGE") | ||
docker image rm "$DOCKER_IMAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#!/bin/bash | ||
|
||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -w /home/rrg/proxmark3 -it pm3-arch:1.0 | ||
. 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
docker build -t "pm3-debian-bullseye:1.0" . | ||
. docker_conf | ||
UART_PORT="$(../../pm3 --list|head -n1|cut -d' ' -f2)" | ||
UART_GID="$(stat -c '%g' $UART_PORT)" | ||
docker build --build-arg UART_GID="$UART_GID" -t "$DOCKER_IMAGE" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# sourceme | ||
DOCKER_IMAGE=pm3-debian-bullseye:1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker rm $(docker ps -aq --filter ancestor=pm3-debian-bullseye:1.0) | ||
docker image rm pm3-debian-bullseye:1.0 | ||
. docker_conf | ||
docker rm $(docker ps -aq --filter ancestor="$DOCKER_IMAGE") | ||
docker image rm "$DOCKER_IMAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#!/bin/bash | ||
|
||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -w /home/rrg/proxmark3 -it pm3-debian-bullseye:1.0 | ||
. 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
docker build -t "pm3-debian-bookworm:1.0" . | ||
. docker_conf | ||
UART_PORT="$(../../pm3 --list|head -n1|cut -d' ' -f2)" | ||
UART_GID="$(stat -c '%g' $UART_PORT)" | ||
docker build --build-arg UART_GID="$UART_GID" -t "$DOCKER_IMAGE" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# sourceme | ||
DOCKER_IMAGE=pm3-debian-bookworm:1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker rm $(docker ps -aq --filter ancestor=pm3-debian-bookworm:1.0) | ||
docker image rm pm3-debian-bookworm:1.0 | ||
. docker_conf | ||
docker rm $(docker ps -aq --filter ancestor="$DOCKER_IMAGE") | ||
docker image rm "$DOCKER_IMAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#!/bin/bash | ||
|
||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -w /home/rrg/proxmark3 -it pm3-debian-bookworm:1.0 | ||
. 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
docker build -t "pm3-debian-trixie:1.0" . | ||
. docker_conf | ||
UART_PORT="$(../../pm3 --list|head -n1|cut -d' ' -f2)" | ||
UART_GID="$(stat -c '%g' $UART_PORT)" | ||
docker build --build-arg UART_GID="$UART_GID" -t "$DOCKER_IMAGE" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# sourceme | ||
DOCKER_IMAGE=pm3-debian-trixie:1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker rm $(docker ps -aq --filter ancestor=pm3-debian-trixie:1.0) | ||
docker image rm pm3-debian-trixie:1.0 | ||
. docker_conf | ||
docker rm $(docker ps -aq --filter ancestor="$DOCKER_IMAGE") | ||
docker image rm "$DOCKER_IMAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#!/bin/bash | ||
|
||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -w /home/rrg/proxmark3 -it pm3-debian-trixie:1.0 | ||
. 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
docker build -t "pm3-fedora-36:1.0" . | ||
. docker_conf | ||
UART_PORT="$(../../pm3 --list|head -n1|cut -d' ' -f2)" | ||
UART_GID="$(stat -c '%g' $UART_PORT)" | ||
docker build --build-arg UART_GID="$UART_GID" -t "$DOCKER_IMAGE" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# sourceme | ||
DOCKER_IMAGE=pm3-fedora-36:1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker rm $(docker ps -aq --filter ancestor=pm3-fedora-36:1.0) | ||
docker image rm pm3-fedora-36:1.0 | ||
. docker_conf | ||
docker rm $(docker ps -aq --filter ancestor="$DOCKER_IMAGE") | ||
docker image rm "$DOCKER_IMAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#!/bin/bash | ||
|
||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -w /home/rrg/proxmark3 -it pm3-fedora-36:1.0 | ||
. 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
docker build -t "pm3-fedora-37:1.0" . | ||
. docker_conf | ||
UART_PORT="$(../../pm3 --list|head -n1|cut -d' ' -f2)" | ||
UART_GID="$(stat -c '%g' $UART_PORT)" | ||
docker build --build-arg UART_GID="$UART_GID" -t "$DOCKER_IMAGE" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# sourceme | ||
DOCKER_IMAGE=pm3-fedora-37:1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker rm $(docker ps -aq --filter ancestor=pm3-fedora-37:1.0) | ||
docker image rm pm3-fedora-37:1.0 | ||
. docker_conf | ||
docker rm $(docker ps -aq --filter ancestor="$DOCKER_IMAGE") | ||
docker image rm "$DOCKER_IMAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#!/bin/bash | ||
|
||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -w /home/rrg/proxmark3 -it pm3-fedora-37:1.0 | ||
. 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
docker build -t "pm3-brew:1.0" . | ||
. docker_conf | ||
UART_PORT="$(../../pm3 --list|head -n1|cut -d' ' -f2)" | ||
UART_GID="$(stat -c '%g' $UART_PORT)" | ||
docker build --build-arg UART_GID="$UART_GID" -t "$DOCKER_IMAGE" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# sourceme | ||
DOCKER_IMAGE=pm3-brew:1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker rm $(docker ps -aq --filter ancestor=pm3-brew:1.0) | ||
docker image rm pm3-brew:1.0 | ||
. docker_conf | ||
docker rm $(docker ps -aq --filter ancestor="$DOCKER_IMAGE") | ||
docker image rm "$DOCKER_IMAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,11 @@ | ||
#!/bin/bash | ||
|
||
docker run --volume=$(pwd)/../..:/home/linuxbrew/proxmark3 -w /home/linuxbrew/proxmark3 -it pm3-brew:1.0 | ||
. 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" | ||
# if needed, run brew as user linuxbrew |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
#!/bin/bash | ||
|
||
docker build -t "pm3-kali:1.0" . | ||
. docker_conf | ||
UART_PORT="$(../../pm3 --list|head -n1|cut -d' ' -f2)" | ||
UART_GID="$(stat -c '%g' $UART_PORT)" | ||
docker build --build-arg UART_GID="$UART_GID" -t "$DOCKER_IMAGE" . |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# sourceme | ||
DOCKER_IMAGE=pm3-kali:1.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
#!/bin/bash | ||
|
||
docker rm $(docker ps -aq --filter ancestor=pm3-kali:1.0) | ||
docker image rm pm3-kali:1.0 | ||
. docker_conf | ||
docker rm $(docker ps -aq --filter ancestor="$DOCKER_IMAGE") | ||
docker image rm "$DOCKER_IMAGE" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
#!/bin/bash | ||
|
||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -w /home/rrg/proxmark3 -it pm3-kali:1.0 | ||
. 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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.