Skip to content

Add README for building using Vagrant and Ansible #1147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
46 changes: 46 additions & 0 deletions tools/vagrants/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# Building in VirtualBox using Vagrant and Ansible

If you want to quickly get Pyston up-and-running in a virtual machine,
you can use Vagrant to create a virtual machine in VirtualBox
running Ubuntu 14.04 (Trusty Tahr). The following steps
use Ansible to run the commands to download and compile Pyston
plus its dependencies.


## Requirements

You need to install:

- [Oracle VirtualBox](https://www.virtualbox.org/wiki/Downloads)
- [Vagrant](http://downloads.vagrantup.com/)
- [Ansible](http://docs.ansible.com/intro_installation.html#installing-the-control-machine) - If you're on a Mac and you use [homebrew](http://brew.sh), you can just run "brew install ansible"

## Building

From a checkout directory of Pyston, enter
the `tools/vagrant` directory, and enter:

```
$ vagrant up
```

And then wait a while, probably an hour or two.

## Using the Virtual Machine

Once the machine has finished installing (vagrant calls this provisioning),
you can connect to it with:

```
$ vagrant ssh
```

Then once you're in the virtual machine:

```
$ cd pyston/src
$ ./pyston_dbg
```