Install airtime in vagrant env
Uses the old installer to get LibreTime installed quick and dirty on vagrant. It uses the `install -fIap` command that does a local install and points the apache config directly to the local working copy mounted in /vagrant. While we don't have fancy autoloading for libretime like the docs do, this way it's already easy to work against a local branch. I'm not sure if the `-I` arg to the installer also covers the python parts of libretime.
This commit is contained in:
parent
bdcd21208d
commit
8ed1dce4b1
|
@ -5,8 +5,10 @@ Vagrant.configure("2") do |config|
|
||||||
|
|
||||||
config.vm.box = "ubuntu/trusty64"
|
config.vm.box = "ubuntu/trusty64"
|
||||||
|
|
||||||
|
config.vm.network "forwarded_port", guest: 80, host:8080
|
||||||
config.vm.network "forwarded_port", guest: 8888, host:8888
|
config.vm.network "forwarded_port", guest: 8888, host:8888
|
||||||
|
|
||||||
|
config.vm.provision "shell", inline: "cd /vagrant; ./install -fIap"
|
||||||
config.vm.provision "shell", path: "docs/scripts/install.sh"
|
config.vm.provision "shell", path: "docs/scripts/install.sh"
|
||||||
config.vm.provision "shell", path: "docs/scripts/serve.sh"
|
config.vm.provision "shell", path: "docs/scripts/serve.sh"
|
||||||
|
|
||||||
|
|
|
@ -22,4 +22,6 @@ The easiest way to check out LibreTime for yourself is to run a local instance i
|
||||||
cd libretime
|
cd libretime
|
||||||
vagrant up
|
vagrant up
|
||||||
|
|
||||||
|
If everything works out, you will find LibreTime on [port 8080](http://localhost:8080) and the docs on [port 8888](http://localhost:8888).
|
||||||
|
|
||||||
Of course, this setup isn't appropriate for production use. For that, check out our [installation instructions](install.md).
|
Of course, this setup isn't appropriate for production use. For that, check out our [installation instructions](install.md).
|
||||||
|
|
9
install
9
install
|
@ -305,11 +305,17 @@ if [ "$ignore_dependencies" = "f" ]; then
|
||||||
else
|
else
|
||||||
loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y -m --force-yes install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-ubuntu-trusty.apt | tr '\n' ' ')"
|
loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y -m --force-yes install $(grep -vE '^\s*#' ${SCRIPT_DIR}/installer/lib/requirements-ubuntu-trusty.apt | tr '\n' ' ')"
|
||||||
fi
|
fi
|
||||||
|
if [ "$in_place" = "t" ]; then
|
||||||
|
loudCmd "DEBIAN_FRONTEND=noninteractive apt-get -y -m --force-yes install git"
|
||||||
|
fi
|
||||||
set -e
|
set -e
|
||||||
else
|
else
|
||||||
checkCommandExists "apache2"
|
checkCommandExists "apache2"
|
||||||
checkCommandExists "rabbitmqctl"
|
checkCommandExists "rabbitmqctl"
|
||||||
checkCommandExists "psql"
|
checkCommandExists "psql"
|
||||||
|
if [ "$in_place" = "t" ]; then
|
||||||
|
checkCommandExists "git"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Check if composer exists and install if it doesn't
|
# Check if composer exists and install if it doesn't
|
||||||
|
@ -606,8 +612,7 @@ if [ ! -d "/etc/airtime" ]; then
|
||||||
|
|
||||||
verbose "\n * Creating /etc/airtime/ directory..."
|
verbose "\n * Creating /etc/airtime/ directory..."
|
||||||
mkdir /etc/airtime
|
mkdir /etc/airtime
|
||||||
verbose "\n * Creating /etc/airtime-saas/ directory..."
|
# workaround for reintegrated airtime-saas dir, will get removed after we refactored config loading
|
||||||
# Default saas directory for the analyzer, cloud storage, and celery
|
|
||||||
ln -s /etc/airtime/ /etc/airtime/production
|
ln -s /etc/airtime/ /etc/airtime/production
|
||||||
# put the default cloud_storage.conf using local file storage into directory
|
# put the default cloud_storage.conf using local file storage into directory
|
||||||
cp ${AIRTIMEROOT}/airtime_mvc/build/cloud_storage.conf /etc/airtime/cloud_storage.conf
|
cp ${AIRTIMEROOT}/airtime_mvc/build/cloud_storage.conf /etc/airtime/cloud_storage.conf
|
||||||
|
|
Loading…
Reference in New Issue