update docker scripts

This commit is contained in:
Philippe Teuwen 2021-05-25 17:10:56 +02:00
commit 4c36f5a5f7
32 changed files with 58 additions and 34 deletions

View file

@ -0,0 +1,15 @@
FROM opensuse/leap
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-leap:1.0" .

View file

@ -0,0 +1,4 @@
#!/bin/bash
docker image rm pm3-suse-leap:1.0
docker image rm opensuse/leap

View file

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