Update docker scripts

This commit is contained in:
pancake 2022-11-04 18:04:11 +01:00
parent f3a05a63e1
commit ea1b5c3ba1
2 changed files with 18 additions and 2 deletions

View File

@ -30,8 +30,8 @@
# $ r2 -d /bin/true
#
# Using debian 10 as base image.
FROM debian:10
# FROM ubuntu:20.04
# Label base
LABEL r2docker latest
@ -39,7 +39,7 @@ LABEL r2docker latest
# Radare version
ARG R2_VERSION=master
# R2pipe python version
ARG R2_PIPE_PY_VERSION=1.6.5
ARG R2_PIPE_PY_VERSION=1.7.3
ARG with_arm32_as
ARG with_arm64_as

16
dist/docker/Makefile vendored Normal file
View File

@ -0,0 +1,16 @@
ARCH=amd64
# ARCH=arm64
DOCKER_IMAGE=r2docker
DOCKERFLAGS+=--privileged
DOCKERFLAGS+=--cap-add=SYS_PTRACE
DOCKERFLAGS+=--security-opt seccomp=unconfined
DOCKERFLAGS+=--security-opt apparmor=unconfined
ifneq ($(ARCH),)
DOCKER_PLATFORM+=--platform linux/$(ARCH)
endif
all:
docker build $(DOCKER_PLATFORM) -t $(DOCKER_IMAGE) .
docker run $(DOCKER_PLATFORM) -v $(shell pwd)/../..:/r $(DOCKERFLAGS) -i -t r2