Skip to content

Commit

Permalink
docker parrot
Browse files Browse the repository at this point in the history
  • Loading branch information
doegox committed Dec 15, 2021
1 parent 4beb851 commit acb23ac
Show file tree
Hide file tree
Showing 6 changed files with 39 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docker/build-all.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/bash

for os in archlinux debian-buster fedora-34 fedora-35 homebrew opensuse-leap opensuse-tumbleweed ubuntu-18.04 ubuntu-20.04 ubuntu-21.04; do
for os in archlinux debian-buster fedora-34 fedora-35 homebrew opensuse-leap opensuse-tumbleweed parrot-core-latest ubuntu-18.04 ubuntu-20.04 ubuntu-21.04; do
( cd $os && ./docker_build.sh )
done
19 changes: 19 additions & 0 deletions docker/parrot-core-latest/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
FROM parrotsec/core:latest

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 libpython3-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 changes: 9 additions & 0 deletions docker/parrot-core-latest/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Notes to run tests

```
sudo apt update
sudo apt install -y python3-minimal
sudo apt install -y python3-pip
python3 -m pip install ansicolors sslcrypto
tools/pm3_tests.sh --long
```
3 changes: 3 additions & 0 deletions docker/parrot-core-latest/docker_build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker build -t "pm3-parrotsec-core-latest:1.0" .
4 changes: 4 additions & 0 deletions docker/parrot-core-latest/docker_rm.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/bash

docker image rm pm3-parrotsec-core-latest:1.0
#docker image rm ubuntu:21.04
3 changes: 3 additions & 0 deletions docker/parrot-core-latest/docker_run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/bash

docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -it pm3-parrotsec-core-latest:1.0

0 comments on commit acb23ac

Please sign in to comment.