Merge pull request #155 from poanetwork/vb-erl-node-update

Reflect recent update of Blockscout application
This commit is contained in:
Victor Baranov 2020-12-03 12:38:12 +03:00 committed by GitHub
commit d5056459bf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 3 deletions

View File

@ -1,5 +1,5 @@
# System variables
ansible_python_interpreter: "/usr/bin/python3"
ansible_python_interpreter: "/usr/local/bin/python3"
# Common variables

View File

@ -66,7 +66,7 @@ if ! which libtool >/dev/null; then
fi
if ! which node >/dev/null; then
log "Installing nodejs.."
curl -sL https://rpm.nodesource.com/setup_12.x | sudo bash -
curl -sL https://rpm.nodesource.com/setup_14.x | sudo bash -
yum --enablerepo=epel install -y nodejs >"$LOG"
fi
if ! which gcc >/dev/null; then
@ -148,7 +148,7 @@ EOF
log "Installing Erlang.."
erlang_version="esl-erlang_22.0-1~centos~7_amd64.rpm"
erlang_version="esl-erlang_23.0.3-1~centos~7_amd64.rpm"
wget https://packages.erlang-solutions.com/erlang/rpm/centos/7/x86_64/${erlang_version}
yum localinstall -y wxGTK-devel unixODBC-devel >"$LOG"
yum localinstall -y ${erlang_version} >"$LOG"
@ -211,6 +211,12 @@ if ! which g++ >/dev/null; then
yum install -y gcc-c++ >"$LOG"
fi
if ! which rustc >/dev/null; then
log "Installing Rustc.."
sudo yum install -y rust >"$LOG"
sudo yum install -y cargo >"$LOG"
fi
function has_db() {
psql --tuples-only --no-align \
"$DATABASE_URL/postgres" \