Step-by-Step SPARCRequest Deployment Notes for First-timer

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 vagrant­vbguest

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/mysql­community­release­el7­5.noarch.rpm

sudo rpm ­ivh mysql­community­release­el7­5.noarch.rpm
sudo yum install ­y mysql­server

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 git­core zlib zlib­devel gcc­c++ patch readline readline­devel libyaml­devel libffi­devel openssl­devel make bzip2 autoconf automake libtool bison curl sqlite­devel vim
cd ~
git clone git://github.com/sstephenson/rbenv.git .rbenv
git clone https://github.com/rbenv/ruby­build.git ~/.rbenv/plugins/ruby­build 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/sparc­request/sparc­request/blob/master/doc/multi_institutional_documentatio+ n.md
I didn't do this, so the email function and single sign­on functions haven't been set up yet

Install bundle

gem install bundler ­­--no-­rdoc --­­no-­ri

Install capybara­-webkit 1.14.0

https://github.com/thoughtbot/capybara-webkit/wiki/Installing-Qt-and-compiling-capybara-webkit#centos-7

sudo yum install -­y epel-­release
sudo yum install ­-y qt5­-qtwebkit­-devel
QMAKE=/usr/lib64/qt5/bin/qmake gem install capybara­webkit ­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

Copyright © 2011-2025 MUSC Foundation for Research Development