diff --git a/runners/Dockerfile b/runners/Dockerfile new file mode 100644 index 0000000..4e01fbf --- /dev/null +++ b/runners/Dockerfile @@ -0,0 +1,13 @@ +FROM debian + +USER root + +RUN apt-get update && apt-get install -y elinks whois wget python3 knot-dnsutils python3-requests\ + openssh-client curl inetutils-ping nmap aria2 git less jq 7zip p7zip-full p7zip unzip zip yq rsync ddgr bzip2\ + && apt-get clean && rm -rf /var/lib/apt/lists/* + +RUN mkdir -p /root/bin + +COPY root_scripts/* /root/bin/ + +RUN chmod 700 /root/bin/* diff --git a/runners/Readme.md b/runners/Readme.md new file mode 100644 index 0000000..7b30b5b --- /dev/null +++ b/runners/Readme.md @@ -0,0 +1 @@ +A suggested simple image to run jobs inside with some tooling to manage setup and teardown and artifacts. diff --git a/runners/root_scripts/create-user.sh b/runners/root_scripts/create-user.sh new file mode 100644 index 0000000..8e79e55 --- /dev/null +++ b/runners/root_scripts/create-user.sh @@ -0,0 +1,5 @@ +#!/bin/bash + +useradd -m -s /bin/bash "$1" +mkdir -p "/home/$1/.packetserver/artifacts" +mkdir -p "/home/$1/.packetserver/objects"