You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
swarms/api
mike dupont 8dc2f371d5
now lets add a sleep to wait for swarms
10 months ago
..
nginx update 10 months ago
systemd update 10 months ago
Makefile update 10 months ago
Readme.md wip 10 months ago
agent_api_test.py first version to test 10 months ago
boot.sh bugfix 10 months ago
check_ssm.py update 10 months ago
check_status.py wip 10 months ago
get_logs.py update 10 months ago
install.sh now lets add a sleep to wait for swarms 10 months ago
main.py now for the free tier ubuntu 10 months ago
requirements.txt Create requirements.txt 10 months ago
rerun-git.sh update 10 months ago
rerun.sh update 10 months ago
run_logs.sh wip 10 months ago
run_logs2.sh wip 10 months ago
skypilot.yaml Merge branch 'master' into 668 10 months ago
ssh.py update 10 months ago
terminate.py terminate spot instances as well 10 months ago
terminate.sh terminate spot instances as well 10 months ago
terminate_spots.py terminate spot instances as well 10 months ago
test.sh first version to test 10 months ago
test2.sh adding hunter 10 months ago
test_api.py [AGENT][LiteLLM FIX] [API FIX] 10 months ago
tools.sh remove emacs 10 months ago
uvicorn_runner.py adding hunter 10 months ago

Readme.md

sudo bash ./install.sh

to redo all the steps remove the lock files

rm ${ROOT}/opt/swarms/install/*

or in my system:

export ROOT=/mnt/data1/swarms
sudo rm ${ROOT}/opt/swarms/install/*

rerun

export ROOT=/mnt/data1/swarms; 
sudo rm ${ROOT}/opt/swarms/install/*; 
sudo bash ./install.sh
curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
sudo dpkg  -i ./session-manager-plugin.deb 
  • run

To redo the installation steps for the Swarms tool on your system, follow these commands sequentially:

  1. Set the ROOT variable:

    export ROOT=/mnt/data1/swarms
    
  2. Remove the lock files:

    sudo rm ${ROOT}/opt/swarms/install/*
    
  3. Run the installation script again:

    sudo bash ./install.sh
    

For setting up the Session Manager plugin on Linux, you can follow these commands:

  1. Download the Session Manager plugin:

    curl "https://s3.amazonaws.com/session-manager-downloads/plugin/latest/ubuntu_64bit/session-manager-plugin.deb" -o "session-manager-plugin.deb"
    
  2. Install the plugin:

    sudo dpkg -i ./session-manager-plugin.deb
    

After that, you can run your desired commands or workflows.** get the instance id aws ec2 describe-instances

** start a session aws ssm start-session --target i-XXXX

** on the machine:

sudo su - 
tail /var/log/cloud-init-output.log 

Convert this to an automation of your choice to run all the steps and run this on all the instances

To get the instance ID and start a session using AWS CLI, follow these steps:

  1. Get the Instance ID: Run the following command to list your instances and their details:

    aws ec2 describe-instances
    
  2. Start a Session: Replace i-XXXX with your actual instance ID from the previous step:

    aws ssm start-session --target i-XXXX
    
  3. On the Machine: After starting the session, you can execute the following commands:

    sudo su -
    tail /var/log/cloud-init-output.log