docker-adminer icon indicating copy to clipboard operation
docker-adminer copied to clipboard

Migrate to official php image

Open mikehaertl opened this issue 10 years ago • 5 comments

I see that instead of an official PHP base image this project uses a custom setup with nginx + php-fpm which requires supervisord to manage both services. So this is not in line with the recommended docker paradigm of one process per container.

It also seems to slow down the shutdown of this image. In a setup with 5 containers, it's always adminer that I have to wait for.

So would you consider a migration to the official apache based PHP image? It would make the Dockerfile simpler and take the burden of installing PHP from you. You still can tweak the PHP config though, if you want to.

mikehaertl avatar Sep 18 '15 08:09 mikehaertl

@clue Any opinion on this?

mikehaertl avatar Sep 30 '15 17:09 mikehaertl

There is now an official image based on alpine (eg php:7.0-fpm-alpine), so it could solve #16 at the same time

mathroc avatar Apr 09 '16 11:04 mathroc

There is now an official image based on alpine (eg php:7.0-fpm-alpine), so it could solve #16 at the same time

Sounds good to me! :+1:

Does anybody feel like filing a PR?

clue avatar Apr 10 '16 09:04 clue

@clue Good to hear! I think, this image can be simplified a lot. E.g. we should not need any supervisor at all. Using the official apache based PHP image it's only a matter of downloading the adminer source. That should also greatly improve startup/shutdown times.

mikehaertl avatar Apr 10 '16 11:04 mikehaertl

this image can be simplified a lot.

That's good to hear and I'm not opposed to getting any optimization in here at all :) This image has initially been created way before official PHP images were a thing. Now let's address these outstanding PRs :shipit:

clue avatar Apr 11 '16 09:04 clue