Skip to content

Commit f00d2e3

Browse files
committed
Updated Go, Terra Core, nodejs, and Oracle Feeder.
- Improved the organization of the script in user1.sh
1 parent 44a8723 commit f00d2e3

File tree

2 files changed

+16
-9
lines changed

2 files changed

+16
-9
lines changed

terra/sample/terrad.service

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,8 @@ User=$USER
88
ExecStart=/home/$USER/go/bin/terrad start
99
Restart=on-failure
1010
RestartSec=5s
11+
LimitNOFILE=65537
1112

1213
[Install]
1314
WantedBy=multi-user.target
1415

15-
[Service]
16-
LimitNOFILE=65537

terra/user1.sh

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -27,23 +27,25 @@ echo "====================="
2727
mkdir -p $HOME/Downloads
2828

2929
# Installation of Go
30+
VERSION_GO=1.16.8
3031
echo "Installing Go"
3132
echo "-------------"
3233
cd $HOME/Downloads
33-
wget https://golang.org/dl/go1.16.5.linux-amd64.tar.gz
34-
sudo tar -C /usr/local -zxvf go1.16.5.linux-amd64.tar.gz
34+
wget https://golang.org/dl/go${VERSION_GO}.linux-amd64.tar.gz
35+
sudo tar -C /usr/local -zxvf go${VERSION_GO}.linux-amd64.tar.gz
3536
source ~/.profile
3637
echo -n "Installed "
3738
go version
3839

3940
# Installation of terrad
41+
VERSION_CORE=v0.4.6
4042
echo "Installing terrad"
4143
echo "-----------------"
4244
mkdir -p $HOME/go
4345
cd $HOME/Downloads
4446
git clone https://github.com/terra-project/core
4547
cd $HOME/Downloads/core
46-
git checkout v0.4.6
48+
git checkout ${VERSION_CORE}
4749
make install
4850
echo -n "Installed terrad "
4951
terrad version
@@ -59,12 +61,13 @@ source ~/.profile
5961
echo " done."
6062

6163
# Install the Price Server
64+
VERSION_NODE=v14.17.6
6265
echo "Downloading Node.js"
6366
echo "-------------------"
6467
cd $HOME/Downloads
65-
wget https://nodejs.org/dist/v14.16.1/node-v14.16.1-linux-x64.tar.xz
66-
tar -xvf node-v14.16.1-linux-x64.tar.xz
67-
cd node-v14.16.1-linux-x64/
68+
wget https://nodejs.org/dist/${VERSION_NODE}/node-${VERSION_NODE}-linux-x64.tar.xz
69+
tar -xvf node-${VERSION_NODE}-linux-x64.tar.xz
70+
cd node-${VERSION_NODE}-linux-x64/
6871
sudo mv -i bin/* /usr/local/bin/
6972
rmdir bin
7073
sudo mv -i include/node /usr/local/include/
@@ -80,14 +83,19 @@ rm CHANGELOG.md
8083
rm LICENSE
8184
rm README.md
8285
cd ..
83-
rmdir node-v14.16.1-linux-x64
86+
rmdir node-${VERSION_NODE}-linux-x64
8487

8588
# Install the Oracle Feeder and Price Server
8689
echo "Downloading Oracle Feeder"
8790
echo "-------------------------"
8891
cd $HOME
8992
git clone https://github.com/terra-project/oracle-feeder.git
9093

94+
VERSION_FEEDER=v1.4.5
95+
echo "Switching to version $VERSION_FEEDER"
96+
cd $HOME/oracle-feeder
97+
git checkout $VERSION_FEEDER
98+
9199
echo "- Installing Feeder."
92100
cd $HOME/oracle-feeder/feeder
93101
/usr/local/bin/npm install

0 commit comments

Comments
 (0)