Skip to content

vajack/env-builder

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Code-Check test environment builder

This makes a virtual machine which has several programming languages.

Packages which installed by this.

  • java 8
  • node 0.12.x
    • nvm
    • npm
    • typescript
    • coffeescript
    • mocha
  • php 5.5
    • composer
  • ruby 2.2
  • scala 2.11.6
    • sbt 0.13.8
    • activator 1.3.2
  • python3
  • git 2.x
  • mysql 5.6

Prerequisite

  • VirtualBox
  • Vagrant 1.7 or later
  • Ansible

Add ubunt1404 to vagrant box

vagrant box add ubuntu1404 https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box

And then make your own Vagrantfile and hosts.
Vagrantfile.sample and hosts.sample are sample files.

Export the private key path for GitHub and OS user name of guest PC.

export PRIVATE_KEY_PATH=~/.ssh/id_rsa
export OS_USER_NAME=vagrant

Make local environment

All roles are included in all.yml.
If you want to choose using roles, make your own yaml file.

git clone https://github.com/code-check/env-builder.git code-check-env
cd code-check-env
vagrant up
ansible-playbook all.yml

Run

vagrant ssh

Trouble shooting

Use vagrant 1.7 or later

The location of ssh private key was changed from 1.7.
Check existence of .vagrant/machines/default/virtualbox/private_key

Maintain ~/.ssh/known_hosts

If you destroyed the virtual machine and recreate it.
Its host signature changes.
So, you have to remove existing host signature(192.168.33.101) from known_hosts.

About

Test environment builder

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 100.0%