docker fedora-35

This commit is contained in:
Philippe Teuwen 2021-12-15 00:28:25 +01:00
commit f664b426c8
5 changed files with 51 additions and 0 deletions

View 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"]

View 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.

View file

@ -0,0 +1,3 @@
#!/bin/bash
docker build -t "pm3-fedora-35:1.0" .

View 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
View file

@ -0,0 +1,3 @@
#!/bin/bash
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -it pm3-fedora-35:1.0