dockerfiles for tests

This commit is contained in:
Philippe Teuwen 2020-06-08 02:53:13 +02:00
commit e5a97f3e80
15 changed files with 118 additions and 0 deletions

19
docker/ubuntu/Dockerfile Normal file
View file

@ -0,0 +1,19 @@
FROM ubuntu:20.04
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 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"]

3
docker/ubuntu/docker_build.sh Executable file
View file

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

3
docker/ubuntu/docker_run.sh Executable file
View file

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