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 fb5ce65466
mount opt source
10 months ago
..
nginx adjust ports 10 months ago
systemd mount opt source 10 months ago
Makefile Docker compose 10 months ago
Readme.md Docker compose 10 months ago
advanced_api.py [CLEANUP] 10 months ago
agent_api_test.py Docker compose 10 months ago
api_telemetry_draft.txt added draft of swarms fastapi with opentelemetry - further terraform config to push in swarms-terraform 10 months ago
api_test.py [CLEANUP] 10 months ago
api_tests.py [CLEANUP] 10 months ago
boot.sh Docker compose 10 months ago
boot_fast.sh Docker compose 10 months ago
check_ssm.py Docker compose 10 months ago
docker-boot.sh Docker compose 10 months ago
get_logs.py Docker compose 10 months ago
install.sh Docker compose 10 months ago
just_run.sh Docker compose 10 months ago
logstreams.json [6.5.7] 10 months ago
main.py added draft of swarms fastapi with opentelemetry - further terraform config to push in swarms-terraform 10 months ago
pip.freeze Docker compose 10 months ago
requirements.txt added draft of swarms fastapi with opentelemetry - further terraform config to push in swarms-terraform 10 months ago
rerun-git.sh Docker compose 10 months ago
rerun.sh Docker compose 10 months ago
run_logs.sh Docker compose 10 months ago
run_logs2.sh Docker compose 10 months ago
rundocker.sh adjust ports 10 months ago
skypilot.yaml [6.6.8] 10 months ago
ssh.py Docker compose 10 months ago
terminate.py Docker compose 10 months ago
terminate.sh Docker compose 10 months ago
terminate_spots.py Docker compose 10 months ago
terraform.md Docker compose 10 months ago
test.sh Docker compose 10 months ago
test2.sh Docker compose 10 months ago
test_api.py [6.5.7] 10 months ago
test_endpoints.py Docker compose 10 months ago
tools.sh Docker compose 10 months ago
uvicorn_runner.py Docker compose 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