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,16 @@
#FROM opensuse/leap
FROM opensuse/tumbleweed
ENV LANG C
# libqt5-qtbase-devel skipped
RUN zypper --non-interactive install --no-recommends shadow sudo git patterns-devel-base-devel_basis gcc-c++ readline-devel libbz2-devel cross-arm-none-gcc9 cross-arm-none-newlib-devel
# Create rrg user
RUN useradd -ms /bin/bash rrg
RUN passwd -d rrg
RUN printf 'rrg ALL=(ALL) NOPASSWD: ALL\n' | tee -a /etc/sudoers
USER rrg
WORKDIR "/home/rrg"
CMD ["/bin/bash"]

View file

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

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

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