Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5 from palantirnet/install_stuff
Browse files Browse the repository at this point in the history
Composer install while provisioning
  • Loading branch information
becw authored Jan 13, 2017
2 parents 35e0c21 + 4b8d118 commit cee6a73
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
12 changes: 11 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
# "The" Vagrant

Add a customizable vagrant environment into a project.

_Note: If you are instantiating a project, you likely want to start with [drupal-skeleton](https://github.com/palantirnet/drupal-skeleton)._

Add a customizable vagrant environment into a project.
## Dependencies

This Vagrant configuration requires the following plugins:

* [vagrant-hostmanager](https://github.com/devopsgroup-io/vagrant-hostmanager)
* [vagrant-auto_network](https://github.com/oscar-stack/vagrant-auto_network)
* [vagrant-triggers](https://github.com/emyl/vagrant-triggers)

## Installation

## Adding the-vagrant with composer

Expand Down
6 changes: 5 additions & 1 deletion conf/vagrant/Vagrantfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

%w{ vagrant-hostmanager vagrant-auto_network }.each do |plugin|
%w{ vagrant-hostmanager vagrant-auto_network vagrant-triggers }.each do |plugin|
unless Vagrant.has_plugin?(plugin)
raise "#{plugin} plugin is not installed. Please install with: vagrant plugin install #{plugin}"
end
Expand Down Expand Up @@ -56,4 +56,8 @@ Vagrant.configure(2) do |config|
}
end

config.trigger.before [:up, :reload] do
run "composer install --ignore-platform-reqs"
end

end

0 comments on commit cee6a73

Please sign in to comment.