Summercamp 2015 Vagrant Base Box
Vagrant base box, with Ansible pull based provisioning to setup all that is required for Summercamp 2015.
You need to have following installed:
The minimum recommended version of vagrant at the time of writng is 1.7.4
With these versions you can use Virtualbox 4.x or 5.x
You will also need to have hardware virtualization option activated in bios, if you have one.
Workshop Virtual Machine Setup
The local development is meant to be used in a vagrant provisioned box.
The provisioner for the project is ansible.
Once you have the prerequisites setup, clone the repo, and from the cloned repo directory run the
vagrant up --no-provision
from you terminal to start the process up.
This will download the basebox and start it up, as everything is already installed, there is no need for provisioning
If you do not see an error message, go get yourself a cup of coffee or your favorite beverage, you deserve it.
If you start seeing the connection timeout after adding of the private key
default: SSH username: vagrant default: SSH auth method: private key default: Warning: Connection timeout. Retrying... default: Warning: Connection timeout. Retrying...
You should open up the Virtualbox, click the vm running (name should be along the lines of netgen-summercamp2015....) and reset it (on OSX it is cmd+t). This is due to some weird bug somewhere on intersection of vagrant, virtualbox and this ubuntu cloud image. After the initial virtual machine build, you will not need to use this.
If you experience error along the lines of
==> default: Adding box 'netgen/summercamp2015' (v1.0.1) for provider: virtualbox default: Downloading: https://atlas.hashicorp.com/netgen/boxes/summercamp2015/versions/1.0.1/providers/virtualbox.box ==> default: Box download is resuming from prior download progress An error occurred while downloading the remote file. The error message, if any, is reproduced below. Please fix this error and try again. HTTP server doesn't seem to support byte ranges. Cannot resume.
you will need to execute
You may be required to use admin privileges to execute this.
If for any reason you need to reprovision the vm, you will need to run
Be carefull with this one, as it takes a LOT of time on slow connection.
If vagrant starts complaining about locale and crashes the provisioning, in ~/.bash_profile (or equivalent) add
export LC_ALL=en_US.UTF-8 export LANG=en_US.UTF-8
You will need to add the following to your hosts file
172.21.12.10 ezsylius.ezsc 172.21.12.10 ezplatform.ezsc 172.21.12.10 ezplatformui.ezsc 172.21.12.10 ezmulticolors.ezsc 172.21.12.10 ez5perf.ezsc 172.21.12.10 ezbolt.ezsc 172.21.12.10 ezsolr.ezsc 172.21.12.10 ezobjwrapper.ezsc 172.21.12.10 doctrine.phpsc 172.21.12.10 ci.phpsc 172.21.12.10 oop.phpsc 172.21.12.10 modernising.phpsc 172.21.12.10 frontend.phpsc 172.21.12.10 loose.phpsc 172.21.12.10 lionframe.phpsc 172.21.12.10 httpcache.phpsc 172.21.12.10 puli.phpsc 172.21.12.10 modelling.phpsc 172.21.12.10 profiling.phpsc 172.21.12.10 symfony3.phpsc 172.21.12.10 apigility.phpsc
Linux/MacOS systems location of the hosts file is
Location on Windows systems is along the lines of
You may be required to use admin privileges to edit the hosts file.
For your convenience there is a
run.sh script available in the root of the summercamp vm
You can run it without an argument which will in turn setup all the workshops, or you can run it with workshop name as argument, and it will only run setup for that workshop. Possible arguments are
ezsylius ezobjwrapper oop doctrine httpcache ezsolr ci loose ezperformance puli ezbolt frontend lionframe modelling modernising apigility ezplatform ezplatformui profiling symfony3
To run it, you need to ssh into your vm by using
Once you are logged in to your vm, execute
and then you can execute
and only the ezsylius workshop would be installed