mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-01-07 00:28:07 +08:00
Add docker for new stable Debian
This commit is contained in:
parent
78b48a6ce7
commit
6fcba2bc08
5 changed files with 38 additions and 0 deletions
19
docker/debian-bullseye/Dockerfile
Normal file
19
docker/debian-bullseye/Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
FROM debian:bullseye-slim
|
||||||
|
|
||||||
|
ENV LANG C
|
||||||
|
ENV DEBIAN_FRONTEND noninteractive
|
||||||
|
# qtbase5-dev skipped
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get dist-upgrade -y && \
|
||||||
|
apt-get install -y --no-install-recommends git ca-certificates build-essential cmake pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev libbz2-dev libbluetooth-dev sudo && \
|
||||||
|
apt-get clean
|
||||||
|
|
||||||
|
# Create rrg user
|
||||||
|
RUN useradd -ms /bin/bash rrg
|
||||||
|
RUN passwd -d rrg
|
||||||
|
RUN printf 'rrg ALL=(ALL) ALL\n' | tee -a /etc/sudoers
|
||||||
|
|
||||||
|
USER rrg
|
||||||
|
WORKDIR "/home/rrg"
|
||||||
|
|
||||||
|
CMD ["/bin/bash"]
|
9
docker/debian-bullseye/README.md
Normal file
9
docker/debian-bullseye/README.md
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# Notes to run tests
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install python3-minimal
|
||||||
|
sudo apt install python3-pip
|
||||||
|
python3 -m pip install ansicolors sslcrypto
|
||||||
|
tools/pm3_tests.sh --long
|
||||||
|
```
|
3
docker/debian-bullseye/docker_build.sh
Executable file
3
docker/debian-bullseye/docker_build.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker build -t "pm3-debian-bullseye:1.0" .
|
4
docker/debian-bullseye/docker_rm.sh
Normal file
4
docker/debian-bullseye/docker_rm.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker image rm pm3-debian-bullseye:1.0
|
||||||
|
docker image rm bullseye-slim
|
3
docker/debian-bullseye/docker_run.sh
Executable file
3
docker/debian-bullseye/docker_run.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -it pm3-debian-bullseye:1.0
|
Loading…
Reference in a new issue