A Vagrant file to get you up and running with TYPO3 in a few minutes.
- Oracle VirtualBox
- Vagrant 1.5.0+
- vagrant-hostmanager plugin to easily access the virtual machine using domain names
- vagrant-omnibus plugin - takes care of installing Chef on the new box
- vagrant-vbguest plugin - keeps the VirtualBox guest additions uptodate
- Ruby (comes pre-installed on OS X)
- RubyGems - the Ruby package manager (also comes with OS X)
- Librarian-Chef to resolve dependencies of Chef cookbooks we use to provision the virtual machine
- Opscode Chef (knowledge optional but for sure nice to have)
- Download and install VirtualBox
- Download and install Vagrant - the most recent version should be fine
- Install the vagrant plugins: In a terminal execute
vagrant plugin install vagrant-hostmanager
vagrant plugin install vagrant-omnibus
vagrant plugin install vagrant-vbguest
- Use RubyGems to install Librarian Chef by executing the following command a terminal:
gem install librarian-chef
- Clone your project from source control into the
htdocs
folder - Let Librarian fetch all the Chef cookbooks and their dependencies by executing
librarian-chef install
- Now you are ready to
vagrant up
in your project directory
This box does not set up folder syncing since that can be slow. Personally I use PhpStorm to deploy on save. Alternatively you can try Capistrano in a combination with Guard to run deployments or any other deployment tool you prefer.
- Fork the repository on Github
- Create a named feature branch (like
feature_x
) - Write your change
- Write tests for your change (if applicable)
- Run the tests, ensuring they all pass
- Submit a Pull Request using Github
Authors: Ingo Renner (@irnnr)
Copyright: 2013-2014, Ingo Renner
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.