-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathipengine_config.sh
More file actions
24 lines (20 loc) · 1.04 KB
/
Copy pathipengine_config.sh
File metadata and controls
24 lines (20 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/bash
yum update -y
yum -y install git htop ntf4-acl-tools
## Install python deps
sudo -u ec2-user bash -c "wget https://repo.continuum.io/miniconda/Miniconda2-latest-Linux-x86_64.sh -O \$HOME/miniconda.sh"
sudo -u ec2-user bash -c "bash \$HOME/miniconda.sh -b -p \$HOME/miniconda"
sudo -i -u ec2-user bash -c "echo export PATH=\\\$HOME/miniconda/bin:\\\$PATH >> \$HOME/.bashrc"
sudo -i -u ec2-user bash -c "echo export OMP_NUM_THREADS=1 >> \$HOME/.bashrc"
sudo -i -u ec2-user conda install -y ipyparallel dill boto3
#sudo -i -u ec2-user conda install -y scipy h5py matplotlib sortedcontainers
#sudo -i -u ec2-user conda install -y -c etetoolkit ete2
## Mount EBS data volume
if [ ! -d {ebsdata_mount_point} ]
then
mkdir {ebsdata_mount_point}
fi
echo {controller_ip}:/ {ebsdata_mount_point} nfs4 nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 0 0 >> /etc/fstab
mount {ebsdata_mount_point}
## Start ipcluster controller
sudo -i -u ec2-user ipcluster engines --profile-dir={ebsdata_mount_point}/profile_{cluster_name} --daemonize=True