-
Notifications
You must be signed in to change notification settings - Fork 343
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
Waiting for feedback before PR official docker-library repo #1
Comments
Hi, I just stumbled on this repo while I was trying to dockerize piwik myself. I'm on a Mac here and I was getting some permissions problems with your setup so I made some edits to not mount directories back to my host. For example, Now I'm unclear how the database should be initialized. When I |
@bmoo thanks for your feedback! PermissionWhat do you use to run docker on mac? Database initI just updated https://github.com/piwik/docker-piwik/blob/master/README.md#installation Thanks, Pierre |
Hey @pierreozoux I use vmware-fusion 8 and docker-machine with the boot2docker image. And I'm in the git repo when I run compose. Here's the output -
I didn't need the db volume mapped to my host so I removed the mapping (as I described earlier) and that fixed the permission problem. Then I ran
Removing the |
One way to solve this might be to put these externalized files and folders in a data container that is built from the same base image as the rest. Then the uid/gids would be consistent between the app and its volume mount. |
Hum, thanks for your comment. |
Yes |
I just installed Piwik with this image, worked great. 👍 |
In my case this image worked flawlessly. In fact, I have built one temporal image for using it until having this real official one online (jaml/tmp-official-piwik). Good job! |
Ok, I'll PR to official repo (probably beginning of next week) |
Is there a change to have an alpine version of this image? In large scale clusters, image size matters. |
This would be a nice to have indeed. I'd be glad to accept a PR to this repo, then we'll have to figure ot (The size doesn't matter that much, I use debian for all my cluster, and On 11-12-2015 11:49, José Moreira wrote:
|
@pierreozoux thanks for your response. I'm gonna create an internal one and then an open-source one. |
One service per container is a best practice. On 16-12-2015 15:50, José Moreira wrote:
I use PGP to protect our privacy, if you want to know more, you can If you have further questions, please do not hesitate to ask. |
Yep, I know... 😞 But for scale them up separately I have to configure also Seems that I'm gonna choose to build up the internal image with an HTTP endpoint instead. By the way, IMHO, I think the way this image is accepting configurations (through volume file sharing) makes it hardener to deploy. That is the main reason that took me to build a new one instead. |
separate php-fpm from nginx is a little bit to much imo. if possible you also should not have to build your own image first. it should run with providing env vars and a separate mysql db. im working on a alpine version for a customer right now. im checking the official wordpress image for some ideas to get this work. |
We already bootstraped an alpine based docker image with s6 as supervisor. Unfortunately I dont have 100% sure if it has been completed since it wasn't implemented yet. Tomorrow, as soon as I get on my laptop I could confirm and release an OS one. Enviado do meu telefone com Cyanogen Em 02/01/2016 18:47, Mike notifications@github.com escreveu: separate php-fpm from nginx is a little bit to much imo. if possible you also should not have to build your own image first. it should run with providing env vars and a separate mysql db. im working on a alpine version for a customer right now. im checking the official wordpress image for some ideas to get this work. — |
checking this image it seems it's already pretty close to the wordpress one so changing it to |
@MikeMichel thanks for the feedback. |
saw ssh in another piwik image but i just wanted to say, that keeping the official images as clean as possible should be the way to go. however, in this case it is just about the prefered webserver which is here nginx so you create another container for fpm to avoid s3/supervisord while here i would pick apache as it is part of the official php repo .with the mentioned to small changes i now can do
and i'm ready to go but that's just the way i would prefer. there are many ways to do it. |
Ok the official image is almost merged \o/ And then, we'll make it with apache and alpine. As other pojects like ownCloud or WordPress, they offer different alternatives with the use of tags. We can have the same. How do you like the idea? |
ah right, tags make sense. i can do a blogpost then on sloppy.io how to combine wordpress with piwik using official images only. |
Ah you work for sloppy.io :) Yes, it would be awesome! On 09-01-2016 10:40, Mike wrote:
I use PGP to protect our privacy, if you want to know more, you can If you have further questions, please do not hesitate to ask. |
Hi guys, Interesting discussion. |
@Toub getting closer every days :) |
The official repo is PRed, so I close this issue. |
If you want to test, before following the instructions, make sure you build a local piwik image:
So the instructions will becore:
The text was updated successfully, but these errors were encountered: