podman-binexp/run.sh

21 lines
472 B
Bash
Executable File

#!/bin/sh
# Static configuration
IMAGE="gitea.slebba.net/seb/podman-binexp-img:latest" # Adjust to the desired image tag
CONTAINER_NAME="pwner"
HOST_DIR="$(pwd)/host"
LOGS_DIR="$(pwd)/logs"
# Ensure host and logs directories exist
mkdir -p "$HOST_DIR" "$LOGS_DIR"
# Run the container
podman run --rm \
-v "$HOST_DIR:/host:z" \
-v "$LOGS_DIR:/logs:z" \
--cap-add=SYS_PTRACE \
--security-opt seccomp=unconfined \
-d \
--name "$CONTAINER_NAME" \
-i "$IMAGE"