Last active
August 21, 2018 02:24
-
-
Save ToshihitoKon/54dabb7565b28b7e755bc74a369aed32 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
# yum update and toolset install | |
sudo yum -y update | |
sudo yum -y install git-all openssl-devel readline-devel sqlite gcc gcc-c++ | |
## Ruby toolset setup | |
git clone git://github.com/sstephenson/rbenv.git ~/.rbenv | |
git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build | |
echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc | |
echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc | |
echo 'eval "$(rbenv init -)"' >> ~/.bashrc | |
echo 'gem: --no-ri --no-rdoc' > ~/.gemrc | |
source ~/.bashrc | |
# Ruby setup | |
rbenv install 2.5.1 | |
rbenv global 2.5.1 | |
gem install bundler | |
# Node.js setup | |
sudo rpm -Uvh https://rpm.nodesource.com/pub_4.x/el/7/x86_64/nodesource-release-el7-1.noarch.rpm | |
sudo yum -y install nodejs | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment