# HG changeset patch # User Chris Cannam # Date 1502810806 -3600 # Node ID f26dc3004b3fc188a4c0b425340bfa01ee36a8f5 # Parent ae8043b014c77a9e824a4007821c7fb0f690f86a A currently-failing attempt to get this setup working on Centos 7. Stalling on the problem of getting a recent enough system Ruby diff -r ae8043b014c7 -r f26dc3004b3f extra/soundsoftware/scripted-deploy/vagrant/Vagrantfile --- a/extra/soundsoftware/scripted-deploy/vagrant/Vagrantfile Tue Aug 15 13:33:56 2017 +0100 +++ b/extra/soundsoftware/scripted-deploy/vagrant/Vagrantfile Tue Aug 15 16:26:46 2017 +0100 @@ -2,7 +2,8 @@ # vi: set ft=ruby : Vagrant.configure("2") do |config| - config.vm.box = "ubuntu/xenial64" +# config.vm.box = "ubuntu/xenial64" + config.vm.box = "centos/7" config.vm.network "forwarded_port", guest: 80, host: 8080 config.vm.synced_folder "../../../..", "/vagrant-code" config.vm.provision :shell, path: "vagrant-provision.sh" diff -r ae8043b014c7 -r f26dc3004b3f extra/soundsoftware/scripted-deploy/vagrant/provision.d/000-apt.sh --- a/extra/soundsoftware/scripted-deploy/vagrant/provision.d/000-apt.sh Tue Aug 15 13:33:56 2017 +0100 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,36 +0,0 @@ -#!/bin/bash - -set -e - -apt-get update && \ - apt-get dist-upgrade -y && \ - apt-get install -y \ - ack-grep \ - apache2 \ - apache2-dev \ - apt-utils \ - build-essential \ - cron \ - curl \ - doxygen \ - exim4 \ - git \ - graphviz \ - imagemagick \ - libapache-dbi-perl \ - libapache2-mod-perl2 \ - libapr1-dev \ - libaprutil1-dev \ - libauthen-simple-ldap-perl \ - libcurl4-openssl-dev \ - libdbd-pg-perl \ - libpq-dev \ - libmagickwand-dev \ - libio-socket-ssl-perl \ - logrotate \ - mercurial \ - postgresql \ - rsync \ - ruby \ - ruby-dev \ - sudo diff -r ae8043b014c7 -r f26dc3004b3f extra/soundsoftware/scripted-deploy/vagrant/provision.d/000-system-packages.sh --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/extra/soundsoftware/scripted-deploy/vagrant/provision.d/000-system-packages.sh Tue Aug 15 16:26:46 2017 +0100 @@ -0,0 +1,74 @@ +#!/bin/bash + +set -e + +if [ -x /usr/bin/yum ]; then + + # assumption: CentOS 7 + + yum install -y epel-release centos-release-scl && \ + yum update -y && \ + yum install -y \ + httpd \ + httpd-devel \ + gcc \ + gcc-c++ \ + curl \ + doxygen \ + git \ + mercurial \ + mod_perl \ + postgresql \ + rh-ruby24 \ + rh-ruby24-ruby-devel \ + rh-ruby24-rubygems \ + rh-ruby24-rubygems-devel \ + logrotate + + if [ -f /usr/bin/ruby ]; then + yum remove -y ruby + fi + + cat > /etc/profile.d/enableruby24.sh <