From 1a5f216278e2671aecb40d1bc9a779cc8c7e45bd Mon Sep 17 00:00:00 2001 From: Michael Woods Date: Mon, 6 Jan 2025 20:57:03 -0500 Subject: [PATCH] added a starter image to run jobs with --- runners/Dockerfile | 13 +++++++++++++ runners/Readme.md | 1 + runners/root_scripts/create-user.sh | 5 +++++ 3 files changed, 19 insertions(+) create mode 100644 runners/Dockerfile create mode 100644 runners/Readme.md create mode 100644 runners/root_scripts/create-user.sh 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"