Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Vagrant config to run Piwik on Vagrant #8542

Closed
wants to merge 1 commit into from
Closed

Add Vagrant config to run Piwik on Vagrant #8542

wants to merge 1 commit into from

Conversation

mnapoli
Copy link
Contributor

@mnapoli mnapoli commented Aug 11, 2015

The piwik-dev-environment project is not maintained. Additionally it doesn't work with an existing Piwik install (matomo-org/matomo-dev-environment#2) so I don't think it's worth fixing anyway.

I'm committing the Vagrant config I've been using (cleaned up of custom things). Using it is very simple:

  • set up the following aliases in /etc/hosts

    192.168.33.10   apache.piwik
    192.168.33.10   nginx.piwik
    192.168.33.10   phpmyadmin.piwik
    
  • run vagrant up

  • if Piwik is already installed, add apache.piwik to the trusted hosts: trusted_hosts[] = "apache.piwik"

That's it, Piwik is accessible at http://apache.piwik or http://nginx.piwik.

To run e.g. UI tests:

vagrant ssh
cd /vagrant
./console tests:run-ui

As you can see, the Piwik directory is synced in /vagrant (just like any other Vagrant setup, it's standard). The VM mounts the folder using NFS, which is much faster than the default vboxfs filesystem, however on OS X vagrant will ask for the root password to edit the NFS config (that's automatic, just type the root password when it tries to do something with sudo).

Feel free to merge it or not.

@mattab mattab modified the milestones: 2.15.0, 2.15.1 Aug 12, 2015
@mnapoli mnapoli mentioned this pull request Sep 2, 2015
@mattab mattab modified the milestone: 2.15.1 Oct 20, 2015
@mattab mattab added this to the 3.0.0 milestone Feb 1, 2016
@tsteur
Copy link
Member

tsteur commented Aug 30, 2016

@mattab I'd suggest to close this PR. It's useful to have but we don't have anybody to maintain / support it. There is now https://github.com/piwik/docker-piwik which is supported and maintained so closing in favour of that.

@tsteur tsteur closed this Aug 30, 2016
@tsteur
Copy link
Member

tsteur commented Aug 30, 2016

@mattab feel free to reopen if needed

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

Successfully merging this pull request may close these issues.

None yet

3 participants