local-php-security-checker icon indicating copy to clipboard operation
local-php-security-checker copied to clipboard

Docker

Open ivanovUA opened this issue 3 years ago • 7 comments

Added dockerfile

ivanovUA avatar Jan 31 '21 20:01 ivanovUA

Maybe it's better to use FROM scratch instead of alpine image.

mprochowski avatar Feb 01 '21 13:02 mprochowski

While a scratch image is great, a version with a shell would be useful for GitLab's runner which blows up without a shell.

Example of Google Kaniko adding an image with a shell to solve this. https://gitlab.com/gitlab-org/gitlab-foss/-/issues/45512

neclimdul avatar Feb 01 '21 17:02 neclimdul

In my opinion, docker image should be as small as possible. If someone wants to use it in another project (like GitLab's runner), they can always create their own multi-step image with app from official image.

Let's create simple things, not complex just because someone maybe need it in the future :smiley:

mprochowski avatar Feb 01 '21 17:02 mprochowski

So yeah, its possible to make it that small. It doesn't match my needs as well as some of the people discussing in #8 who are already trying to use this in gitlab pipelines. From my needs it feels be like only making a arm build because that's the smallest possible.

If having the main image created from scratch is a hard requirement for getting this accepted that's fine. I was offering Google's approach as a solution to make this as useful. TL;DNR, they have a scratch image that works for their pipelines but also a :dev tag with busybox so you can create a container with a shell for debugging but it also supports gitlab pipelines.

neclimdul avatar Feb 01 '21 20:02 neclimdul

Updated build image to Go v15 and base image - scratch with certificates.

ivanovUA avatar Feb 08 '21 11:02 ivanovUA

HI! Why MR not merge ?

ignatenkovnikita avatar Apr 12 '22 11:04 ignatenkovnikita

Tested this - works great!

Got a project using Drupal 7.40 to test:

___www_local-php-security-checker-docker__o_o_

AlexSkrypnyk avatar Apr 30 '22 01:04 AlexSkrypnyk