Install blockexplorer dependencies

This commit is contained in:
Michael Vines 2019-02-15 20:17:30 -08:00
parent 132c664e18
commit 9eb8b67b5c
No known key found for this signature in database
GPG Key ID: 33F4FDEC4E0E88BD
3 changed files with 30 additions and 0 deletions

View File

@ -431,6 +431,8 @@ $(
add-solana-user-authorized_keys.sh \
install-earlyoom.sh \
install-libssl-compatability.sh \
install-nodejs.sh \
install-redis.sh \
install-rsync.sh \
network-config.sh \
remove-docker-interface.sh \

21
net/scripts/install-nodejs.sh Executable file
View File

@ -0,0 +1,21 @@
#!/usr/bin/env bash
#
# Reference: https://github.com/nodesource/distributions/blob/master/README.md#deb
#
set -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
# Install node/npm
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get install -y nodejs
node --version
npm --version
# Install yarn
curl -sL https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
apt-get update -qq
apt-get install -y yarn
yarn --version

7
net/scripts/install-redis.sh Executable file
View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
set -ex
[[ $(uname) = Linux ]] || exit 1
[[ $USER = root ]] || exit 1
apt-get --assume-yes install redis