Pass GEMINI_API_KEY env variable to sandbox

This commit is contained in:
Seth Troisi 2025-04-24 01:18:02 +00:00
parent 31045e6086
commit bf6e809abf
1 changed files with 6 additions and 1 deletions

View File

@ -46,7 +46,12 @@ run_args+=(--name "$IMAGE-$INDEX" --hostname "$IMAGE-$INDEX")
run_args+=(--env "SANDBOX=$IMAGE-$INDEX")
# pass TERM and COLORTERM to container to maintain terminal colors
run_args+=(--env "TERM=${TERM:-}" --env "COLORTERM=${COLORTERM:-}")
run_args+=(--env TERM --env COLORTERM)
# set GEMINI_API_KEY environment variable if it exists
if [ -n "${GEMINI_API_KEY:-}" ]; then
run_args+=(--env GEMINI_API_KEY)
fi
# enable debugging via node --inspect-brk (and $DEBUG_PORT) if DEBUG is set
node_args=()