mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 21:33:47 -07:00
docker fedora-35
This commit is contained in:
parent
2997bd5bf5
commit
f664b426c8
5 changed files with 51 additions and 0 deletions
15
docker/fedora-35/Dockerfile
Normal file
15
docker/fedora-35/Dockerfile
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
FROM fedora:35
|
||||||
|
|
||||||
|
ENV LANG C
|
||||||
|
# qt5-qtbase-devel skipped
|
||||||
|
RUN dnf install -y passwd sudo git make gcc gcc-c++ arm-none-eabi-gcc-cs arm-none-eabi-newlib readline-devel bzip2-devel bluez-libs-devel python3-devel libatomic
|
||||||
|
|
||||||
|
# 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"]
|
26
docker/fedora-35/README.md
Normal file
26
docker/fedora-35/README.md
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
# Notes to run tests
|
||||||
|
|
||||||
|
```
|
||||||
|
sudo yum -y update
|
||||||
|
sudo yum -y install cmake python-pip
|
||||||
|
python3 -m pip install ansicolors sslcrypto
|
||||||
|
tools/pm3_tests.sh --long
|
||||||
|
```
|
||||||
|
|
||||||
|
Warning, no idea how to manage to run `recover_pk` on Fedora...
|
||||||
|
Tried the followings:
|
||||||
|
```
|
||||||
|
python3 -m pip install pyopenssl
|
||||||
|
sudo yum -y install openssl-devel libffi-devel
|
||||||
|
```
|
||||||
|
Error is:
|
||||||
|
```
|
||||||
|
File "/home/rrg/.local/lib/python3.9/site-packages/sslcrypto/_ecc.py", line 202, in get_curve
|
||||||
|
return EllipticCurve(self._backend, params, self._aes, nid)
|
||||||
|
File "/home/rrg/.local/lib/python3.9/site-packages/sslcrypto/_ecc.py", line 211, in __init__
|
||||||
|
self._backend = backend_factory(**params)
|
||||||
|
File "/home/rrg/.local/lib/python3.9/site-packages/sslcrypto/openssl/ecc.py", line 221, in __init__
|
||||||
|
raise ValueError("Could not create group object")
|
||||||
|
```
|
||||||
|
|
||||||
|
So just comment the "recover_pk test" for now, until someone figures out how to solve the issue.
|
3
docker/fedora-35/docker_build.sh
Executable file
3
docker/fedora-35/docker_build.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker build -t "pm3-fedora-35:1.0" .
|
4
docker/fedora-35/docker_rm.sh
Normal file
4
docker/fedora-35/docker_rm.sh
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker image rm pm3-fedora-35:1.0
|
||||||
|
docker image rm fedora:35
|
3
docker/fedora-35/docker_run.sh
Executable file
3
docker/fedora-35/docker_run.sh
Executable file
|
@ -0,0 +1,3 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -it pm3-fedora-35:1.0
|
Loading…
Add table
Add a link
Reference in a new issue