docker support

This commit is contained in:
Ian Foster 2020-12-07 19:42:57 -08:00
parent 57496c38b6
commit e1c7b5493f
3 changed files with 48 additions and 0 deletions

View file

@ -8,6 +8,8 @@ Once you have the card writen, you should enable SSH, per the instructons [here]
SSH into your pi, and follow along with this...
## [Docker Install](docker/docker.md)
## Quick Install
```shell

21
docker/Dockerfile Normal file
View file

@ -0,0 +1,21 @@
FROM debian
RUN apt-get update && apt-get -y install --no-install-recommends git libbz2-dev ca-certificates build-essential \
pkg-config libreadline-dev gcc-arm-none-eabi libnewlib-dev python3-flask python3-flask-sqlalchemy \
python3-pip python3-dateutil python3-dateparser libev-dev gunicorn3
RUN pip3 install --upgrade pip && \
pip3 install datetime && \
pip3 install Flask-Babel
WORKDIR /home/pi
RUN git clone --depth 1 https://github.com/RfidResearchGroup/proxmark3.git && \
cd proxmark3 && \
make all && \
make install
WORKDIR /home/pi
RUN git clone --depth 1 https://github.com/videoman/proxmark3-web.git
WORKDIR /home/pi/proxmark3-web
CMD gunicorn3 --reload proxmark3-web:app -b:8080

25
docker/docker.md Normal file
View file

@ -0,0 +1,25 @@
# Docker
proxmark3-web can be run inside Docker for ease of use, it should work on any Docker host, including a Raspberry Pi.
## Building
From the directory with the Dockerfile, run:
```sh
$ docker build -t proxmark3-web .
```
This will create a new Docker container with the latest Proxmark3 code as well as this proxmark3-web repository
## Running
```sh
docker run -it --rm --name proxmark \
-p 8080:8080 \
--device=/dev/ttyACM0 \
proxmark
```
Be sure to pass the Proxmark device to the container, it should be `/dev/ttyACM0` on most Linux systems.