From 400571af13bd025aed5da969db021bf382775f59 Mon Sep 17 00:00:00 2001 From: flyloft Date: Tue, 27 Oct 2026 01:12:38 -0700 Subject: [PATCH 1/2] hello2: a copy of hello, built by a campaign --- tools/hello2/Containerfile | 5 +++++ tools/hello2/SKILL.md | 21 +++++++++++++++++++++ tools/hello2/bin/hello | 7 +++++++ tools/hello2/test/run.sh | 4 ++++ 4 files changed, 37 insertions(+) create mode 100644 tools/hello2/Containerfile create mode 100644 tools/hello2/SKILL.md create mode 100644 tools/hello2/bin/hello create mode 100644 tools/hello2/test/run.sh diff --git a/tools/hello2/Containerfile b/tools/hello2/Containerfile new file mode 100644 index 0000000..f9f7321 --- /dev/null +++ b/tools/hello2/Containerfile @@ -0,0 +1,5 @@ +FROM docker.io/library/debian:bookworm-20261020-slim +ENV NVIDIA_VISIBLE_DEVICES=all NVIDIA_DRIVER_CAPABILITIES=utility +COPY bin/hello /usr/local/bin/hello +RUN chmod +x /usr/local/bin/hello +COPY test /toolshed/test diff --git a/tools/hello2/SKILL.md b/tools/hello2/SKILL.md new file mode 100644 index 0000000..474ccb2 --- /dev/null +++ b/tools/hello2/SKILL.md @@ -0,0 +1,21 @@ +--- +name: hello2 +description: A copy of hello: prints the OS, the user, and the GPU it sees. Built by a flyloft campaign in tier two. +metadata: + version: 1.0.0 +--- +# hello2 + +Image: `ghcr.io/brineylab/toolshed-dev/hello2:1.0.0` + +## Commands + +`hello` prints `os=`, `user=`, and `gpu=`. + +## Inputs and outputs + +None; three lines on stdout. + +## Running it + +`podman run --rm ghcr.io/brineylab/toolshed-dev/hello2:1.0.0 hello` diff --git a/tools/hello2/bin/hello b/tools/hello2/bin/hello new file mode 100644 index 0000000..038848b --- /dev/null +++ b/tools/hello2/bin/hello @@ -0,0 +1,7 @@ +#!/bin/sh +# hello: the OS, the user, and the GPU this container sees. +. /etc/os-release +echo "os=$ID" +echo "user=$(id -u)" +gpu=$(nvidia-smi --query-gpu=name --format=csv,noheader 2>/dev/null | head -n 1) +echo "gpu=${gpu:-none}" diff --git a/tools/hello2/test/run.sh b/tools/hello2/test/run.sh new file mode 100644 index 0000000..bad7c61 --- /dev/null +++ b/tools/hello2/test/run.sh @@ -0,0 +1,4 @@ +set -eu +out=$(hello) +echo "$out" +case "$out" in *"os="*"user="*"gpu="*) ;; *) exit 1 ;; esac From 35b46b69e8a79d1217433d45bb9c714f6f038248 Mon Sep 17 00:00:00 2001 From: Bryan Briney <821533+briney@users.noreply.github.com> Date: Tue, 27 Oct 2026 01:12:50 -0700 Subject: [PATCH 2/2] hello2 1.0.0's record: its candidate passed on slinky --- results/hello2/1.0.0.txt | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 results/hello2/1.0.0.txt diff --git a/results/hello2/1.0.0.txt b/results/hello2/1.0.0.txt new file mode 100644 index 0000000..6e8c978 --- /dev/null +++ b/results/hello2/1.0.0.txt @@ -0,0 +1,17 @@ +--- +tool: hello2 +version: 1.0.0 +image: ghcr.io/brineylab/toolshed-dev/hello2@sha256:5e2434215a80f4cf5fd9c872c67ea3e9a3e94a3404b49ccd5282efa0bc26ad86 +digest: sha256:5e2434215a80f4cf5fd9c872c67ea3e9a3e94a3404b49ccd5282efa0bc26ad86 +runner: sbatch --partition=l40s --gres=gpu:1 --time=00:30:00 +host: bcr.scripps.edu +started: 2026-10-27T08:12:45Z +exit: 0 +--- +pyxis: importing docker image: ghcr.io#brineylab/toolshed-dev/hello2@sha256:5e2434215a80f4cf5fd9c872c67ea3e9a3e94a3404b49ccd5282efa0bc26ad86 +pyxis: imported docker image: ghcr.io#brineylab/toolshed-dev/hello2@sha256:5e2434215a80f4cf5fd9c872c67ea3e9a3e94a3404b49ccd5282efa0bc26ad86 +node: gpu-swann-0 +GPU 0: NVIDIA L40S (UUID: GPU-ab31b94e-1404-7858-604e-4f2a6b62d33e) +os=debian +user=0 +gpu=NVIDIA L40S