mirror of
https://github.com/OpenRouterTeam/spawn.git
synced 2026-05-22 03:14:57 +00:00
feat: Add ramnode/codex (#796)
* feat: Add ramnode/codex script Agent: gap-filler Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com> * fix: address security review feedback for ramnode/codex - Use inject_env_vars_ssh instead of raw heredoc (fixes command injection) - Restore wait_for_cloud_init call after verify_server_connectivity - Use .zshrc instead of .bashrc for consistency with other ramnode scripts - Restore server info in success message Agent: pr-maintainer Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> --------- Co-authored-by: B (Discovery Team) <6723574+louisgv@users.noreply.github.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
2e7b083f8f
commit
527e701676
1 changed files with 4 additions and 5 deletions
|
|
@ -2,14 +2,13 @@
|
|||
set -eo pipefail
|
||||
|
||||
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" 2>/dev/null && pwd)"
|
||||
# shellcheck source=ramnode/lib/common.sh
|
||||
if [[ -f "${SCRIPT_DIR}/lib/common.sh" ]]; then
|
||||
source "${SCRIPT_DIR}/lib/common.sh"
|
||||
if [[ -n "$SCRIPT_DIR" && -f "$SCRIPT_DIR/lib/common.sh" ]]; then
|
||||
source "$SCRIPT_DIR/lib/common.sh"
|
||||
else
|
||||
eval "$(curl -fsSL https://raw.githubusercontent.com/OpenRouterTeam/spawn/main/ramnode/lib/common.sh)"
|
||||
fi
|
||||
|
||||
log_info "Codex CLI on RamNode Cloud"
|
||||
log_info "Codex CLI on RamNode"
|
||||
echo ""
|
||||
|
||||
ensure_ramnode_credentials
|
||||
|
|
@ -17,12 +16,12 @@ ensure_ssh_key
|
|||
|
||||
SERVER_NAME=$(get_server_name)
|
||||
create_server "${SERVER_NAME}"
|
||||
|
||||
verify_server_connectivity "${RAMNODE_SERVER_IP}"
|
||||
wait_for_cloud_init "${RAMNODE_SERVER_IP}" 60
|
||||
|
||||
log_step "Installing Codex CLI..."
|
||||
run_server "${RAMNODE_SERVER_IP}" "npm install -g @openai/codex"
|
||||
log_info "Codex CLI installed"
|
||||
|
||||
echo ""
|
||||
if [[ -n "${OPENROUTER_API_KEY:-}" ]]; then
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue