Commit a78dc5ccdcee535638c49bc7e299bfb97b272748
1 parent
f6fbb146
Exists in
staging
and in
42 other branches
Boot development environment on CentOS 7
Created script to install CentOS 7 dependencies
Showing
1 changed file
with
26 additions
and
0 deletions
Show diff stats
| ... | ... | @@ -0,0 +1,26 @@ |
| 1 | +#!/bin/bash | |
| 2 | + | |
| 3 | +if [ ! -f /etc/yum.repos.d/isv:spb:noosfero.repo ]; then | |
| 4 | + run sudo wget -P /etc/yum.repos.d/ http://download.opensuse.org/repositories/isv:/spb:/noosfero/CentOS_7/isv:spb:noosfero.repo | |
| 5 | +fi | |
| 6 | + | |
| 7 | +DEPENDENCIES='make gcc gcc-c++ ruby ruby-devel rubygem-bundler | |
| 8 | +libicu-devel cmake postgresql-devel postgresql-server ImageMagick-devel | |
| 9 | +libxml2-devel libxslt-devel file-devel tango-icon-theme' | |
| 10 | + | |
| 11 | +run sudo yum install -y $DEPENDENCIES | |
| 12 | + | |
| 13 | +export GEM_HOME=$(ruby -e 'puts Gem.user_dir') | |
| 14 | +export PATH="${GEM_HOME}/bin:${PATH}" | |
| 15 | +(gem list | grep bundler) || run gem install --no-rdoc --no-ri bundler | |
| 16 | +run bundle install | |
| 17 | + | |
| 18 | +sudo tee /etc/profile.d/rubygems-path.sh <<EOF | |
| 19 | +export GEM_HOME=\$(ruby -e 'puts Gem.user_dir') | |
| 20 | +PATH="\${GEM_HOME}/bin:\${PATH}" | |
| 21 | +EOF | |
| 22 | + | |
| 23 | +run sudo postgresql-setup initdb | |
| 24 | +run sudo systemctl enable postgresql | |
| 25 | +run sudo systemctl start postgresql | |
| 26 | + | ... | ... |