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 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