forked from OriginTrail/ot-node
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install-aws.sh
30 lines (22 loc) · 946 Bytes
/
install-aws.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
# using AWS EC2 image: ami-428aa838 (Amazon Linux 2 LTS Candidate AMI 2017.12.0 (HVM))
# ssh into the server
# sudo yum update
# install git to checkout the project on your server
sudo yum install git
# this will install NodeJS (you need at least version 9 as per requirements)
curl --silent --location https://rpm.nodesource.com/setup_9.x | sudo bash -
sudo yum install -y nodejs
# install non-standard python3 on Amazon Linux (this installs pip3)
sudo amazon-linux-extras install python3
# on Fedora/RedHat:
# sudo yum install python3
# install python3 packages using pip3
pip3 install --user python-arango
pip3 install --user xmljson
pip3 install --user python-dotenv
# this is used to fix some vulnerabilities problem when running 'npm install'
sudo yum install patch
cd ~
git clone -b master https://github.com/OriginTrail/ot-node.git
cd ot-node && npm install
echo "Installation complete. Please configure .origintrail_noderc file."