Skip to content

Commit

Permalink
adding vagrantfile for dev
Browse files Browse the repository at this point in the history
  • Loading branch information
cchojnacki committed Feb 28, 2015
1 parent 932e9b2 commit 0eb8147
Show file tree
Hide file tree
Showing 2 changed files with 88 additions and 0 deletions.
87 changes: 87 additions & 0 deletions Vagrantfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
# -*- mode: ruby -*-
# vi: set ft=ruby :

$script = <<SCRIPT
sudo apt-get -y update
DEBIAN_FRONTEND=noninteractive apt-get install -y -q python-software-properties software-properties-common
# install node.js from PPA
add-apt-repository ppa:chris-lea/node.js
apt-get update
apt-get -y install nodejs
# Install Bower & Grunt
npm install -g bower grunt-cli
# install yeoman
npm install -g yo
# install Angular
npm install -g generator-angular
# install oracle java from PPA
add-apt-repository ppa:webupd8team/java -y
apt-get update
echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | /usr/bin/debconf-set-selections
apt-get -y install oracle-java8-installer && apt-get clean
# Set oracle java as the default java
update-java-alternatives -s java-8-oracle
echo "export JAVA_HOME=/usr/lib/jvm/java-8-oracle" >> ~/.bashrc
#install utilities
apt-get -y install vim git sudo zip bzip2 fontconfig curl
#install build-esential
apt-get install -y build-essential
apt-get install -y postgresql
sudo -u postgres bash -c "psql -c \"create user flogdev with password 'flogdev';\""
SCRIPT

Vagrant.configure(2) do |config|
config.vm.box = "ubuntu/trusty64"

# Disable automatic box update checking. If you disable this, then
# boxes will only be checked for updates when the user runs
# `vagrant box outdated`. This is not recommended.
# config.vm.box_check_update = false

# Create a forwarded port mapping which allows access to a specific port
# within the machine from a port on the host machine. In the example below,
# accessing "localhost:8080" will access port 80 on the guest machine.
config.vm.network "forwarded_port", guest: 9000, host: 9000
config.vm.network "forwarded_port", guest: 8080, host: 8080

# Share an additional folder to the guest VM. The first argument is
# the path on the host to the actual folder. The second argument is
# the path on the guest to mount the folder. And the optional third
# argument is a set of non-required options.
# config.vm.synced_folder "../data", "/vagrant_data"

# Provider-specific configuration so you can fine-tune various
# backing providers for Vagrant. These expose provider-specific options.
# Example for VirtualBox:
#
# config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
# vb.memory = "1024"
# end
#
# View the documentation for the provider you are using for more
# information on available options.

# Define a Vagrant Push strategy for pushing to Atlas. Other push strategies
# such as FTP and Heroku are also available. See the documentation at
# https://docs.vagrantup.com/v2/push/atlas.html for more information.
# config.push.define "atlas" do |push|
# push.app = "YOUR_ATLAS_USERNAME/YOUR_APPLICATION_NAME"
# end
config.vm.provision "shell", inline: $script
# Enable provisioning with a shell script. Additional provisioners such as
# Puppet, Chef, Ansible, Salt, and Docker are also available. Please see the
# documentation for more information about their specific syntax and use.
end
1 change: 1 addition & 0 deletions doc/GUITESTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Before you can begin testing you must complete all steps in the
doc/INSTALL.md instructions. To record and execute tests you will
need to install the following dependencies:
- Selenium server 2.45.0
- Python 2.7
- Chrome browser
- Firefox browser
- Firefox selenium IDE plugin 2.8.0
Expand Down

0 comments on commit 0eb8147

Please sign in to comment.