Skip to content

Commit

Permalink
adapt ubuntu 18 docker
Browse files Browse the repository at this point in the history
  • Loading branch information
iceman1001 committed Oct 28, 2022
1 parent 7c7f1e9 commit 5245c68
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 4 deletions.
5 changes: 5 additions & 0 deletions docker/ubuntu-18.04/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,15 @@ ENV DEBIAN_FRONTEND noninteractive
# qtbase5-dev skipped
# python3 skipped, not yet searchable with pkg-config python3
RUN apt-get update && \
apt-get upgrade -y && \
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 libssl-dev sudo && \
apt-get clean

RUN apt install -y python3-minimal && \
apt install -y python3-pip && \
python3 -m pip install ansicolors sslcrypto

# Create rrg user
RUN useradd -ms /bin/bash rrg
RUN passwd -d rrg
Expand Down
19 changes: 16 additions & 3 deletions docker/ubuntu-18.04/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,22 @@
# Notes on run_tests.sh script
This script does both setup the mirrors and pip install and then run a
bunch of different builds with make and cmake together with the different combos
of RDV4, GENERIC, BTADDON combos.

If all tests OK, the script will finish.


# Notes to run tests
The script is to be run in proxmark root folder inside the docker env.

```
docker/ubuntu-18.04/run_tests.sh;
```

Or if you want to run single test,

```
sudo apt update
sudo apt install -y python3-minimal
sudo apt install -y python3-pip
python3 -m pip install ansicolors sslcrypto
make clean; make -j
tools/pm3_tests.sh --long
```
2 changes: 1 addition & 1 deletion docker/ubuntu-18.04/docker_run.sh
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/bin/bash

docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -it pm3-ubuntu-18.04:1.0
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -w /home/rrg/proxmark3 -it pm3-ubuntu-18.04:1.0

0 comments on commit 5245c68

Please sign in to comment.