github.com/bhameyie/otto@v0.2.1-0.20160406174117-16052efa52ec/builtin/app/php/data/common/dev/layer-base/Vagrantfile.tpl (about)

     1  {% extends "compile:data/app/dev/Vagrantfile-layer.tpl" %}
     2  
     3  {% block vagrant_config %}
     4    # Setup Ruby
     5    config.vm.provision "shell", inline: $script_app
     6  {% endblock %}
     7  
     8  {% block footer %}
     9  $script_app = <<SCRIPT
    10  #!/bin/bash
    11  set -e
    12  
    13  # Setup our scriptpacks
    14  . /otto/scriptpacks/STDLIB/main.sh
    15  . /otto/scriptpacks/PHP/main.sh
    16  
    17  # Initialize
    18  otto_init
    19  
    20  # Make it so that `vagrant ssh` goes directly to the correct dir
    21  vagrant_default_cd "vagrant" "/vagrant"
    22  
    23  # Configuring SSH for faster login
    24  vagrant_config_fast_ssh
    25  
    26  # Install PHP
    27  otto_output "Installing PHP Version {{php_version}} "
    28  oe php_install "{{php_version}}"
    29  
    30  otto_output "Installing supporting packages..."
    31  oe sudo apt-get install -y \
    32    bzr git mercurial build-essential \
    33    curl
    34  
    35  otto_output "Installing Composer..."
    36  php_install_composer
    37  SCRIPT
    38  {% endblock %}