Skip to content
This repository has been archived by the owner on Aug 25, 2020. It is now read-only.

Find a way to make it work with an existing Piwik install #2

Open
mnapoli opened this issue Dec 4, 2014 · 5 comments
Open

Find a way to make it work with an existing Piwik install #2

mnapoli opened this issue Dec 4, 2014 · 5 comments

Comments

@mnapoli
Copy link
Contributor

mnapoli commented Dec 4, 2014

I've been trying to use the Vagrant box with my Piwik install, but with no success until now.

piwik/
    # contains Piwik code
piwik-dev-environment/
    ...
    www/
        piwik/ # hey Piwik is cloned here again

I've tried symlinking piwik-dev-environment/www/piwik to the existing Piwik install but VirtualBox doesn't like that (since the simlinked repo is outside of the VM).

How do you do it yourselves?

Should we consider merging that in Piwik's repo? I'd love (and I guess users too) to be able to do just git clone and vagrant up on the Piwik repository.

@mnapoli
Copy link
Contributor Author

mnapoli commented Dec 4, 2014

Maybe instead we could do something like Laravel (but much simpler):

  • this repo is used to create a Vagrant box
  • we distribute the box on https://vagrantcloud.com
  • then we can use the box in the piwik repository (vagrant init piwk)

That way we keep piwik/piwik clean while still having the vagrant VM right inside of it.

I'll have a look into that soon if nobody sees downsides with that (I badly need a VM).

@mattab
Copy link
Member

mattab commented Mar 13, 2015

we distribute the box on https://vagrantcloud.com

it sounds like a good idea. How much work would be involved in this?

Also +1 if it help developers getting started with developing for Piwik. If so we want to explain how to use the vagrant thing in the Setting up developer guide here: http://developer.piwik.org/guides/getting-started-part-1#getting-setup-to-extend-piwik

@mnapoli
Copy link
Contributor Author

mnapoli commented Mar 13, 2015

I honestly don't know how long it would take.

@halfdan
Copy link
Member

halfdan commented Apr 11, 2015

The usual way this is handled is instead of cloning the code repo to www/piwik it would be NFS mounted into the vm (via sync folders). So the setup would be like @mnapoli already has it.

e.g. https://github.com/TryGhost/Ghost-Vagrant/blob/master/Vagrantfile#L38

@mnapoli
Copy link
Contributor Author

mnapoli commented Aug 11, 2015

For people stumbling on this, see matomo-org/matomo#8542

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants