{"action":"created","issue":{"url":"https://api.github.com/repos/piwik/docker-piwik/issues/42","repository_url":"https://api.github.com/repos/piwik/docker-piwik","labels_url":"https://api.github.com/repos/piwik/docker-piwik/issues/42/labels{/name}","comments_url":"https://api.github.com/repos/piwik/docker-piwik/issues/42/comments","events_url":"https://api.github.com/repos/piwik/docker-piwik/issues/42/events","html_url":"https://github.com/piwik/docker-piwik/issues/42","id":181206753,"number":42,"title":"Effort to make more accessible/ deployable","user":{"login":"TheNotary","id":799247,"avatar_url":"https://avatars.githubusercontent.com/u/799247?v=3","gravatar_id":"","url":"https://api.github.com/users/TheNotary","html_url":"https://github.com/TheNotary","followers_url":"https://api.github.com/users/TheNotary/followers","following_url":"https://api.github.com/users/TheNotary/following{/other_user}","gists_url":"https://api.github.com/users/TheNotary/gists{/gist_id}","starred_url":"https://api.github.com/users/TheNotary/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheNotary/subscriptions","organizations_url":"https://api.github.com/users/TheNotary/orgs","repos_url":"https://api.github.com/users/TheNotary/repos","events_url":"https://api.github.com/users/TheNotary/events{/privacy}","received_events_url":"https://api.github.com/users/TheNotary/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-05T16:42:28Z","updated_at":"2016-11-25T18:01:51Z","closed_at":"2016-11-25T18:01:51Z","body":"After some time playing around with the piwik deployment code out there, I decided this repo would be best to work off of, but I did notice some rough corners.  \n1. Configuration of the app couldn't be automated\n2. All commands required to boot the app were not documented or tracked into the repo (relates to #31)\n3. There's no 'quick' deploying\n\nFor my needs, I built a [repo](https://github.com/TheNotary/piwik-dokku) that could be deployed directly to dokku (the diy heroku).  Piwik was first created long before the concenpt of 12f, honestly it's a bit of a miracle that it's capable of operating in linux containers (and only thanks to the volume management systems).  To allow for a deploy that could be configured once and in a configuration file, I setup the container to configure Piwiks on-file-system config file to accept \"API\" requests that finished the configuration steps.  I only went as far as configuring up to the point of the website setup, but others might want to be able to fully configure the app.  This sufficed rough corner 1 for me, and the scripts related to the work can be seen [here](https://github.com/TheNotary/piwik-dokku/tree/master/automated_piwik_configs).  Though I should point out, I'm still disappointed with these automation scripts because they didn't work on Heroku.  \n\nTo solve problem to for my own needs, I wrote a Makefile that contained the commands needed to bring the container fully online.  You can see a [Makefile](https://github.com/TheNotary/piwik-dokku/blob/master/Makefile) that suffices the criteria.  So when I wanted to test to see that the repo was still working I typed `make` to build the docker container, followed by `make boot-containers-dependency` which only booted a MySQL container.  This is because I included steps to boot an nginx server within the dockerfile.  I did this partly because I didn't off-hand know what command could be used to boot an nginx service in a seperate container and partly to suffice rough corner 3\n\nFinally, to make deploying piwik quick and snappy, I added some dokku/ heroku files to allow the repo to be pushed directly to a PaaS service (dokku) to complete the majority of the installation other than Piwik's firstWebsiteSetup action.  This approach to configuring Piwik relates closely to #41\n\nThat all being said, who here want's...\n- A Makefile containing commands for bringing up the app?\n- Nginx to be included in the Dockerfile?\n- Dokku friendly modifications?\n- An On-Deploy script that automates the setup of Piwik so it can be configured via a configuration file?\n"},"comment":{"url":"https://api.github.com/repos/piwik/docker-piwik/issues/comments/263005753","html_url":"https://github.com/piwik/docker-piwik/issues/42#issuecomment-263005753","issue_url":"https://api.github.com/repos/piwik/docker-piwik/issues/42","id":263005753,"user":{"login":"pierreozoux","id":1863453,"avatar_url":"https://avatars.githubusercontent.com/u/1863453?v=3","gravatar_id":"","url":"https://api.github.com/users/pierreozoux","html_url":"https://github.com/pierreozoux","followers_url":"https://api.github.com/users/pierreozoux/followers","following_url":"https://api.github.com/users/pierreozoux/following{/other_user}","gists_url":"https://api.github.com/users/pierreozoux/gists{/gist_id}","starred_url":"https://api.github.com/users/pierreozoux/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pierreozoux/subscriptions","organizations_url":"https://api.github.com/users/pierreozoux/orgs","repos_url":"https://api.github.com/users/pierreozoux/repos","events_url":"https://api.github.com/users/pierreozoux/events{/privacy}","received_events_url":"https://api.github.com/users/pierreozoux/received_events","type":"User","site_admin":false},"created_at":"2016-11-25T18:01:51Z","updated_at":"2016-11-25T18:01:51Z","body":"Yes, the way to go would be to have an apache version.\r\n\r\nI close this in favor of #47.\r\n\r\nIf anybody is willing to PR to add this apache, would be awesome :)"}}
{"actor":{"display_login":"pierreozoux"}}