Page MenuHomePhabricator

Docker image based on alpine
Closed, ResolvedPublic

Description

Hi,
the mediawiki docker image is rather large compared to others, and seems to be based on the regular php docker image.

Would be nice and useful, if there, like with many other docker projects, would be an additional image based on the php alpine version to keep things small and fast.

Event Timeline

Seems like a good idea and is consistent with their best-practices:
https://docs.docker.com/develop/develop-images/dockerfile_best-practices/#from

However, it doesn't seem like they have a PHP image on Alpine that includes Apache. 😕
https://hub.docker.com/_/php/
Without that... there wouldn't be a single-container solution for MediaWiki. 😞

See: https://github.com/docker-library/php/issues/259

Also, @Hadmut2, Welcome to Wikimedia and MediaWiki! :)

Well, it's Alpine Linux. You can easily install plenty of packages.

Just start a docker image from alpine and apk add things like php7-apache2 , apache2, and whatever you need, and you should easily and straightforward get a small and compact alpine-based container running on apache with the php module as a single process.

Or in other words: If they don't have a PHP image on Alpine with Apache, a single apk command in the Dockerfile should be enough to make it.

Or in other words: If they don't have a PHP image on Alpine with Apache, a single apk command in the Dockerfile should be enough to make it.

I don't think that would pass the requirements for Docker's "Official Images" program, but if you'd like to make (and maintain) something like that I think that would be rad.

dbarratt claimed this task.
dbarratt moved this task from Backlog to Done on the Docker-Hub-MediaWiki board.