github.com/dahs81/otto@v0.2.1-0.20160126165905-6400716cf085/builtin/app/python/data/common/dev/layer-base/Vagrantfile.tpl (about)

     1  {% extends "compile:data/app/dev/Vagrantfile-layer.tpl" %}
     2  
     3  {% block vagrant_config %}
     4    # Setup Python
     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/PYTHON/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 Python
    27  otto_output "Installing Python Version {{python_version}} "
    28  oe python_install "{{python_version}}"
    29  
    30  otto_output "Installing supporting packages..."
    31  oe sudo apt-get install -y \
    32    bzr git mercurial build-essential \
    33    libpq-dev zlib1g-dev software-properties-common \
    34    libsqlite3-dev \
    35    curl
    36  SCRIPT
    37  {% endblock %}