Add runtime abstraction and agent loop
Co-authored-by: codegirl007 <codegirl-007@users.noreply.github.com>
This commit is contained in:
co-authored by
codegirl007
parent
54dc5658c6
commit
94146fcae2
Executable
+17
@@ -0,0 +1,17 @@
|
||||
#!/bin/sh
|
||||
set -eu
|
||||
|
||||
root=$(CDPATH= cd -- "$(dirname "$0")/.." && pwd)
|
||||
image=agentbox-runtime:local
|
||||
output="$root/examples/mover/mover"
|
||||
temporary="$output.tmp"
|
||||
|
||||
cleanup() {
|
||||
rm -f "$temporary"
|
||||
}
|
||||
trap cleanup EXIT INT TERM
|
||||
|
||||
docker build -q -t "$image" -f "$root/environment/Dockerfile" "$root" >/dev/null
|
||||
docker run --rm --network=none --entrypoint cat "$image" /opt/agentbox/mover >"$temporary"
|
||||
chmod 0755 "$temporary"
|
||||
mv "$temporary" "$output"
|
||||
Reference in New Issue
Block a user