Page MenuHomePhabricator

dev-images: reorganize to reduce various image sizes
Closed, InvalidPublic

Description

❯ docker image ls | grep xdebug
docker-registry.wikimedia.org/dev/stretch-php72-fpm-apache2-xdebug    0.0.3               0d35359f4b9f        6 hours ago         448MB

and that's with these lines https://gerrit.wikimedia.org/r/c/releng/dev-images/+/572488/2/dockerfiles/stretch-php72-fpm-apache2-xdebug/Dockerfile.template#21

For people attending a Hackathon or with lower bandwidth, it would be nice to reduce this image size.

Event Timeline

brennen triaged this task as Medium priority.Feb 19 2020, 12:49 AM
brennen added a project: User-brennen.
brennen moved this task from Backlog to Next on the User-brennen board.
brennen added a subscriber: brennen.

Probably worth considering T245444 in the context of this one too.

brennen renamed this task from stretch-php72-fpm-apache2-xdebug: reduce image size to dev-images: reorganize to reduce various image sizes.Feb 21 2020, 8:54 PM
brennen moved this task from Next to Doing on the User-brennen board.
brennen added a project: MediaWiki-Docker.

Going over everything in dev-images again, I realized there are quite a few bad (or no-longer-relevant) assumptions in how I organized these in the first place. I'm planning to rearrange the base images a bit and use multi-stage builds as appropriate, which hopefully will cut things down in size.

I'll try not to mess with the existing naming scheme for images that actually get used directly.

Maybe we could consider extending the wikimedia alpine image?