Commit fa03a6b30c0fb90f19651921138a2e63364099cb
Exists in
master
and in
21 other branches
Merge branch 'centos7' into 'master'
Boot development environment on CentOS 7 Added script to install dependencies on CentOS 7. To boot on CentOS 7 only run ./script/quisck-start, remember to install the package "redhat-lsb" that will be able to execute lsb binary used in quick-start script. See merge request !448
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 | + | ... | ... |