SPARCRequest Wiki
Step-by-Step SPARCRequest Deployment Notes for First-timer
(Initial Draft contributed by UC Irvine)
Set up Vagrant
Init
vagrant init centos/7
Config private network
config.vm.network "private_network", ip: "192.xxx.xx.xx"
Config memory and cpus
config.vm.provider "virtualbox" do |vb|
vb.memory = "4096"
vb.cpus = 2
end
Add synced folder
mkdir data
config.vm.synced_folder "data/", "/vagrant_data"
Install Vagrant-vbguest
vagrant plugin install vagrantvbguest
vagrant vbguest
Reload
vagrant reload
Installation for SPARCRequest
Reference
https://github.com/sparc-request/sparc-request/blob/master/doc/easy_installation.pdf
Update Yum
sudo yum update
Install Httpd
sudo yum install y httpd
sudo yum install y httpd-devel
Install and run MySQL
sudo yum install y wget cd /opt
sudo wget http://repo.mysql.com/mysqlcommunityreleaseel75.noarch.rpm
sudo rpm ivh mysqlcommunityreleaseel75.noarch.rpm
sudo yum install y mysqlserver
sudo systemctl start mysqld
sudo systemctl status mysqld
Temporarily give root permission to be connected remotely
mysql u root
GRANT ALL ON . TO 'root';
\q
Install Ruby
I installed ruby 2.4.2p198
Based on my conversation with the SPARCRequest team, I don't think it has to be 1.9.3
sudo yum install y gitcore zlib zlibdevel gccc++ patch readline readlinedevel libyamldevel libffidevel openssldevel make bzip2 autoconf automake libtool bison curl sqlitedevel vim
cd ~
git clone git://github.com/sstephenson/rbenv.git .rbenv
git clone https://github.com/rbenv/rubybuild.git ~/.rbenv/plugins/rubybuild echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bash_profile
echo 'eval "$(rbenv init )"' >> ~/.bash_profile source ~/.bash_profile
rbenv install v 2.4.2
rbenv global 2.4.2
ruby -v
Install Rails
gem install rails
Configure based on multi_institutional_documentation
{+}https://github.com/sparcrequest/sparcrequest/blob/master/doc/multi_institutional_documentatio+ n.md
I didn't do this, so the email function and single signon functions haven't been set up yet
Install bundle
gem install bundler --no-rdoc --no-ri
Install capybara-webkit 1.14.0
sudo yum install -y epel-release
sudo yum install -y qt5-qtwebkit-devel
QMAKE=/usr/lib64/qt5/bin/qmake gem install capybarawebkit v 1.14.0 (The default is >= 1.15.0)
echo 'export PATH="/usr/lib64/qt5/bin:$PATH"' >> ~/.bash_profile
Install curl-devel
sudo yum install -y curl-devel