This repository is part of an ongoing effort to redesign the JAMScript tools with a focus on high-performance execution and scalable infrastructure. To achieve this, we've restructured the architecture around a client-server model that separates the responsibilities of coordination and computation.
Start by cloning the repository and switching to the appropriate branch:
git clone https://github.com/JeanKa25/JAMScript.gitThen run the install.sh to install all the dependencies:
Export the following global variables:
export JAMHOME=~/JAMScript
export PATH=$JAM_HOME/tools:$PATH
export JAMDATA=~/JAMScript/dataTo make these changes permanent, add them to your .bashrc:
echo 'export JAMHOME=~/JAMScript' >> ~/.bashrc
echo 'export PATH=$JAM_HOME/tools:$PATH' >> ~/.bashrc
echo 'export JAMDATA=~/JAMScript/data' >> ~/.bashrc
source ~/.bashrcYou can set up your environment using Ansible with the provided playbook:
sudo apt update
sudo apt install ansible -yansible-playbook setup_jamscript.yml -i localhost,This playbook installs required dependencies, clones the repo, and configures environment variables as needed for JAMScript tools.
To start the JAMScript server, navigate to the tools directory and run the server file:
cd ~/JAMScript/tools
node app-docker.jsBefore running the server, make sure to update the following files:
- Set the
serveripparameter to the IP address of the server.
- Update the following:
serverip: match the IP set inapp-docker.js.- Path to JAMScript tools directory.
- Path to your SSH
authorized_keysfile (used for key-based SSH access).
These updates ensure that the tools can communicate correctly and execute remote tasks securely.
ansible-playbook serverrun-playbook.yml --extra-vars "server=server2"ansible-playbook jamrun-playbook.yml --extra-vars "server=server2 file=jt1.jxe app='--app=DEMO'"ansible-playbook jamlist-playbook.yml --extra-vars "server=server2"ansible-playbook jamterm-playbook.yml --extra-vars "server=server2"ansible-playbook jamterm-playbook.yml --extra-vars "server=server2 tmux=u-1001-dev-112-c"ansible-playbook jamkill-playbook.yml --extra-vars "server=server2"ansible-playbook serverkill-playbook.yml --extra-vars "server=server2"