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

Automate setup of development environment #1051

Merged
merged 39 commits into from Aug 28, 2014

Conversation

Projects
None yet
4 participants
@hamiltont
Contributor

hamiltont commented Aug 22, 2014

This uses Vagrant to automatically setup a fully working TFB development environment inside a Virtualbox VM. The entire environment is contained in one virtual machine (app server, client server, database server), so you can do verification and benchmarking (not much reason to benchmark inside this setup, my point is just that there's no limitation).

Here's how to setup an environment based on github.com/TechEmpower/FrameworkBenchmarks:

# Go into the right directory
$ cd FrameworkBenchmarks/toolset/deployment/vagrant
# Setup the VM with all initial software (takes 15-20 minutes)
$ vagrant up
# SSH into the machine (you get a nice welcome message)
$ vagrant ssh
Welcome to the FrameworkBenchmarks project!

To get started, perhaps try this:
   $ cd FrameworkBenchmarks
   $ toolset/run-tests.py --install server --test go
   $ cat results/ec2/latest/logs/go/out.txt

You can get lots of help:
   $ toolset/run-tests.py --help

This Vagrant environment is already setup and ready to go, so you
can ignore any flags about users, hosts, or identity files

Here's how to setup an environment based on your local source code:

# Go into the right directory
$ cd FrameworkBenchmarks/toolset/deployment/vagrant
# Setup the VM with all initial software (takes 15-20 minutes)
$ SHELL_ARGS=dev vagrant up
<snip>
@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Aug 22, 2014

Contributor

Closes #455. Built on top of #621

Contributor

hamiltont commented Aug 22, 2014

Closes #455. Built on top of #621

@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Aug 23, 2014

Contributor

Update: This can now deploy to Amazon
Update 2: It now has a decent README

Contributor

hamiltont commented Aug 23, 2014

Update: This can now deploy to Amazon
Update 2: It now has a decent README

@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Aug 24, 2014

Contributor

Update: This can now use three virtual machines, each configured for a unique role (app server, database server, client server)

Contributor

hamiltont commented Aug 24, 2014

Update: This can now use three virtual machines, each configured for a unique role (app server, database server, client server)

@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Aug 28, 2014

Contributor

Ok, this is finally done. It can out of the box launch a one-VM VirtualBox development environment, or a 3-VM VirtualBox development environment. If you run vagrant-aws/setup.py it will configure your Amazon account with a network (a "Virtual private cloud") that can run our setup, and then it can run a one-VM development environment in Amazon or can run a benchmark-ready 3-VM environment. By default, the 3-VM Amazon environment uses m1.large and general purpose SSD drives. There are tons of variables to change the amazon settings (instance type, ebs type, delete ebs, etc), and a few variables to change the virtualbox setup (show virtual machine, memory for each vm, etc).

Contributor

hamiltont commented Aug 28, 2014

Ok, this is finally done. It can out of the box launch a one-VM VirtualBox development environment, or a 3-VM VirtualBox development environment. If you run vagrant-aws/setup.py it will configure your Amazon account with a network (a "Virtual private cloud") that can run our setup, and then it can run a one-VM development environment in Amazon or can run a benchmark-ready 3-VM environment. By default, the 3-VM Amazon environment uses m1.large and general purpose SSD drives. There are tons of variables to change the amazon settings (instance type, ebs type, delete ebs, etc), and a few variables to change the virtualbox setup (show virtual machine, memory for each vm, etc).

hamiltont added a commit that referenced this pull request Aug 28, 2014

@hamiltont hamiltont merged commit 436fbcf into TechEmpower:master Aug 28, 2014

1 check was pending

continuous-integration/travis-ci The Travis CI build is in progress
Details

@hamiltont hamiltont deleted the hamiltont:vagrant-setup branch Aug 28, 2014

@methane

This comment has been minimized.

Show comment
Hide comment
@methane

methane Aug 29, 2014

Contributor

Great Job!!

Contributor

methane commented Aug 29, 2014

Great Job!!

@pdonald

This comment has been minimized.

Show comment
Hide comment
@pdonald

pdonald Aug 29, 2014

Contributor

This is great.

Note: if you are on Windows and autocrlf is true in Git then all bash scripts will have \r\n line endings and bootstrap scripts will fail.

Contributor

pdonald commented Aug 29, 2014

This is great.

Note: if you are on Windows and autocrlf is true in Git then all bash scripts will have \r\n line endings and bootstrap scripts will fail.

@hamiltont

This comment has been minimized.

Show comment
Hide comment
@hamiltont

hamiltont Aug 29, 2014

Contributor

Pēteris,

This sounds problematic. Is there a fix we can apply?

Contributor

hamiltont commented Aug 29, 2014

Pēteris,

This sounds problematic. Is there a fix we can apply?

@pdonald

This comment has been minimized.

Show comment
Hide comment
@pdonald

pdonald Aug 31, 2014

Contributor

You could check if one of the bootstrap bash scripts contains \r\n and then show a warning explaining that the user should set autocrlf to false in Git settings and check out all files again.

Contributor

pdonald commented Aug 31, 2014

You could check if one of the bootstrap bash scripts contains \r\n and then show a warning explaining that the user should set autocrlf to false in Git settings and check out all files again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment