-
-
Notifications
You must be signed in to change notification settings - Fork 283
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
dockerized #69
dockerized #69
Conversation
Someone with experience with the stack involved in this pull request that can help validation this solution? |
Related to #68 |
Did you get this to actually work? AFAIK, insights doesn't work on Alpine. See #43 |
For some reason, this distribution of the Alpine image works fine. This would be pretty good for CI, indeed. @nunomaduro Do you plan on publishing this as an official image into Docker Hub? That way, we could run Insights without installing it as a dependency of our projects. Like If you plan on doing that, it would be nice to publish the image and write the documentation accordingly. If not, the documentation would have to be more driven into how to build your own copy of the image and run it. |
I will try to find time to study this. |
@deleugpn as you can see I've used the official PHP CLI docker image, so i guess that this does the magic happens :D |
@smokills Can you update the PR with documentation? We should probably babysit the users here. |
@nunomaduro I'll do it right now :D |
@nunomaduro I've updated the documentation. There is a placeholder |
Here is the docker thing: https://hub.docker.com/r/nunomaduro/phpinsights. Can you update the PR, and resolve conflicts? |
@smokills Can you test if it's working? 🤗 |
@nunomaduro you need to build and push the image to Docker Hub. You'll have to:
If you don't want to decide version right now, you can simply not write any version at all (e.g. Edit: these steps assume you are using this exact branch. |
@nunomaduro as @deleugpn says, you need to push the image on the dockerhub. I suggest to implement this in the CI. I see that you are using travis. Here is the doc about it: https://docs.travis-ci.com/user/docker/#pushing-a-docker-image-to-a-registry |
@deleugpn Do I need to do this every new version? |
@nunomaduro The link @smokills provided will let you automate this with Travis by having Travis push a new image for every commit on your behalf. For testing purpose, I find it easier to push the first image manually until you have time to set it up automatically. |
@nunomaduro it worked for me :) Another thing is that is a good practice to tag the last builded image with the |
How exactly how I |
|
Can we make this |
I think that this is not possible, because this it's how docker works. With that command you are basically saying: pull |
Since not all projects can be updated to php 7.2, I've dockerized this package.
It would be interesting to create a stage in the CI pipeline and push the image on the docker hub