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

View file

@ -0,0 +1,19 @@
FROM archlinux/base
ENV LANG C
RUN pacman -Syy
RUN pacman-db-upgrade
# qt5-base skipped
RUN pacman -S --noconfirm sudo git base-devel cmake libusb readline bzip2 arm-none-eabi-gcc arm-none-eabi-newlib --needed
# 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"
RUN git clone https://aur.archlinux.org/package-query.git && cd package-query && makepkg -si --noconfirm --needed && cd .. && rm -rf package-query
CMD ["/bin/bash"]

View file

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

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

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