-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSTARFUSION_0_8.py
14 lines (12 loc) · 1011 Bytes
/
STARFUSION_0_8.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
from starcluster.clustersetup import ClusterSetup
from starcluster.logger import log
class STARFUSIONInstaller(ClusterSetup):
def run(self, nodes, master, user, user_shell, volumes):
for node in nodes:
log.info("Installing STAR-FUSION 0.8 on %s" % (node.alias))
node.ssh.execute('wget -c -P /opt/software/star-fusion https://github.com/STAR-Fusion/STAR-Fusion/releases/download/v0.8.0/STAR-Fusion_v0.8.FULL.tar.gz')
node.ssh.execute('tar -xzf /opt/software/star-fusion/STAR-Fusion_v0.8.FULL.tar.gz -C /opt/software/star-fusion')
node.ssh.execute('mkdir -p /usr/local/Modules/applications/star-fusion/;touch /usr/local/Modules/applications/star-fusion/0.8')
node.ssh.execute('echo "#%Module" >> /usr/local/Modules/applications/star-fusion/0.8')
node.ssh.execute('echo "set root /opt/software/star-fusion/STAR-Fusion_v0.8" >> /usr/local/Modules/applications/star-fusion/0.8')
node.ssh.execute('echo -e "prepend-path\tPATH\t\$root" >> /usr/local/Modules/applications/star-fusion/0.8')