From 44d9fc0cf1453694ff6d8517548fc621888ef5f6 Mon Sep 17 00:00:00 2001 From: hygienic-books Date: Fri, 28 Aug 2026 09:31:26 +0200 Subject: [PATCH] feat(kit): establish sandbox build script --- build-sbx.sh | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100755 build-sbx.sh diff --git a/build-sbx.sh b/build-sbx.sh new file mode 100755 index 0000000..5a1a9e9 --- /dev/null +++ b/build-sbx.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash + +# Build and optionally configure a Docker sandbox interactively. + +set -o errexit +set -o nounset +set -o pipefail + +readonly KIT_PATH="$HOME/.sbx/kits/hypoport.ai" +readonly TEMPLATE='127.0.0.1:62735/finmas.de/mux033/opencode-ops:latest' + +require_command() { + local command_name="$1" + local message="$2" + + if ! command -v "$command_name" >/dev/null 2>&1; then + printf '%s\n' "$message" >&2 + exit 1 + fi +} + +main() { + require_command sbx 'We cannot build a Docker sbx image because sbx does not seem to be installed.' + require_command jq 'We cannot list existing Docker sbx sandboxes because jq does not seem to be installed.' +} + +main "$@"