<commit_before><commit_msg>Can add a node to the swarm<commit_after>#!/bin/bash

if [ "$1" = "" ]
then
 echo "Usage: $0 <manager ip, eg 192.168.1.22> <swarm token, eg SWMTKN-1-67>"
 exit
fi

if [ "$2" = "" ]
then
 echo "Usage: $0 <manager ip, eg 192.168.1.22> <swarm token, eg SWMTKN-1-67>"
 exit
fi

MANAGER=$1
TOKEN=$2

echo Joining the Swarm, making this host the Manager
docker swarm join --token ${TOKEN} ${MANAGER}:2377

echo List nodes in the Swarm
docker node ls
{'fraction_non_alphanumeric': 0.14893617021276595, 'fraction_numerical': 0.07234042553191489, 'mean_word_length': 3.90625, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2810504', 'n_tokens_mistral': 206, 'n_tokens_neox': 182, 'n_words': 65}