-
-
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.
Docker: fix test for pm3 when building images
- Loading branch information
Showing
28 changed files
with
182 additions
and
70 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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,6 +1,12 @@ | ||
#!/bin/bash | ||
|
||
. 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" . | ||
# 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" . |
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.