osem-fcy/bootstrap.sh

26 lines
980 B
Bash
Raw Normal View History

2015-12-07 11:40:27 +01:00
#!/bin/bash
2017-11-04 22:13:19 -02:00
pushd /vagrant
2015-12-07 11:40:27 +01:00
echo -e "\ninstalling required software packages...\n"
zypper -q ar -f http://download.opensuse.org/repositories/devel:/languages:/ruby/openSUSE_Leap_42.2/devel:languages:ruby.repo
zypper -q --gpg-auto-import-keys --non-interactive ref
2017-07-14 01:23:03 +05:30
zypper -q -n install update-alternatives ruby2.4-devel make gcc gcc-c++ \
libxml2-devel libxslt-devel nodejs screen mariadb \
libmysqld-devel sqlite3-devel ImageMagick
2015-12-07 11:40:27 +01:00
echo -e "\ndisabling versioned gem binary names...\n"
echo 'install: --no-format-executable' >> /etc/gemrc
echo -e "\ninstalling bundler...\n"
2017-07-14 01:23:03 +05:30
gem.ruby2.4 install bundler
2015-12-07 11:40:27 +01:00
echo -e "\ninstalling your bundle...\n"
su - vagrant -c "cd /vagrant/; bundle install --quiet"
echo -e "\nConfiguring the app...\n"
su - vagrant -c "cd /vagrant/; bundle exec rake db:bootstrap"
2015-12-07 11:40:27 +01:00
echo -e "\nProvisioning of your OSEM rails app done!"
echo -e "To start your development OSEM run: vagrant exec bundle exec rails server -b 0.0.0.0\n"