Git Product home page Git Product logo

summercamp-2015's Introduction

Summercamp 2015 Vagrant Base Box

Vagrant base box, with Ansible pull based provisioning to setup all that is required for Summercamp 2015.

Authors

Prerequisites

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.

IMPORTANT note the --no-provision switch

This will download the basebox and start it up, as everything is already installed, there is no need for provisioning hence the --no-provision switch

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

rm ~/.vagrant.d/tmp/*

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

vagrant provision

Be carefull with this one, as it takes a LOT of time on slow connection.

IMPORTANT

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

Hosts Setup

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

/etc/hosts

Location on Windows systems is along the lines of

C:\Windows\System32\Drivers\etc\hosts

You may be required to use admin privileges to edit the hosts file.

Workshop Setup

For your convenience there is a run.sh script available in the root of the summercamp vm

/var/www/summercamp/

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

vagrant ssh

Once you are logged in to your vm, execute

cd /var/www/summercamp/

and then you can execute

./run.sh ezsylius

and only the ezsylius workshop would be installed

summercamp-2015's People

Contributors

dbu avatar dkorunic avatar emodric avatar ezimuel avatar ilukac avatar jakzal avatar janit avatar kuborgh-mspindelhirn avatar mareg avatar pspanja avatar umpirsky avatar vranac avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

summercamp-2015's Issues

add workshop host names to /etc/hosts and to system running vagrant

we should have all the hosts defined. inside the box this is simply having a file that adds to /etc/hosts when creating the box and pointing them all to 127.0.0.1

for the main system, there are hostname plugins for vagrant. not sure if those can be used to provide more than one name for the machine, as you need to make the apache vhosts work.

VM provisioning fails with VirtualBox 5

It seems that the bundled VirtualBox tools fail to do the mounting of the shared folders.

Here is the end of cli output of vagrant up:

==> default: Checking for guest additions in VM...
default: The guest additions on this VM do not match the installed version of
default: VirtualBox! In most cases this is fine, but in rare cases it can
default: prevent things such as shared folders from working properly. If you see
default: shared folder errors, please make sure the guest additions within the
default: virtual machine match the version of VirtualBox you have installed on
default: your host and reload your VM.
default:
default: Guest Additions Version: 4.3.10
default: VirtualBox Version: 5.0
==> default: Configuring and enabling network interfaces...
==> default: Mounting shared folders...
default: /vagrant => D:/htdocs/summercamp2015
The following SSH command responded with a non-zero exit status.
Vagrant assumes that this means the command failed!

chown id -u vagrant:id -g vagrant /vagrant

Stdout from the command:

Stderr from the command:

chown: changing ownership of ���/vagrant���: Not a directory

Submodules as HTTPS instead of SSH Links

When using git or ssh urls for submodules and you want to run the run.sh from within you box you will need to configure git with a public key.
If you only use HTTPS references and the repositories are all public this is no longer needed, is it?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.