mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-14 18:48:13 -07:00
docker: ubuntu 18.04 and 20.04
This commit is contained in:
parent
95dfe54917
commit
1d2752715d
9 changed files with 34 additions and 5 deletions
|
@ -1,3 +0,0 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker build -t "pm3-ubuntu:1.0" .
|
19
docker/ubuntu18/Dockerfile
Normal file
19
docker/ubuntu18/Dockerfile
Normal file
|
@ -0,0 +1,19 @@
|
|||
FROM ubuntu:18.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/ubuntu18/docker_build.sh
Executable file
3
docker/ubuntu18/docker_build.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker build -t "pm3-ubuntu18:1.0" .
|
4
docker/ubuntu18/docker_rm.sh
Normal file
4
docker/ubuntu18/docker_rm.sh
Normal file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker image rm pm3-ubuntu18:1.0
|
||||
docker image rm ubuntu:18.04
|
|
@ -1,3 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -it pm3-ubuntu:1.0
|
||||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -it pm3-ubuntu18:1.0
|
3
docker/ubuntu20/docker_build.sh
Executable file
3
docker/ubuntu20/docker_build.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker build -t "pm3-ubuntu20:1.0" .
|
|
@ -1,4 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker image rm pm3-ubuntu:1.0
|
||||
docker image rm pm3-ubuntu20:1.0
|
||||
docker image rm ubuntu:20.04
|
3
docker/ubuntu20/docker_run.sh
Executable file
3
docker/ubuntu20/docker_run.sh
Executable file
|
@ -0,0 +1,3 @@
|
|||
#!/bin/bash
|
||||
|
||||
docker run --volume=$(pwd)/../..:/home/rrg/proxmark3 -it pm3-ubuntu20:1.0
|
Loading…
Add table
Add a link
Reference in a new issue