[go: up one dir, main page]

Page MenuHomePhabricator

Flickering during docker build output
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Update to >= Docker version 4.18.0
  • Make sure you clear pixel's build cache (e.g. ./pixel.js clean; docker system prune -a;)
  • Run npm i; ./pixel.js reference

What happens?:
Lots of flickering when docker tries to build pixel's images.

What should have happened instead?:
No flickering when docker tries to build pixel's images.

Developer notes

This may be related to a bug in Docker (v. 4.18.0) as I first noticed this issue after updating my Docker version. Prior to updating, I didn't have this issue.

Event Timeline

Using the new-ish --progress=plain flag in docker compose and docker build solved this:

https://github.com/wikimedia/pixel/pull/254/files#diff-57b743d11d7cdb3d271b8005cd049abab184eb5e7d651023101c459612af2d39R289

https://github.com/wikimedia/pixel/pull/255/files#diff-57b743d11d7cdb3d271b8005cd049abab184eb5e7d651023101c459612af2d39R18

Had to update the Docker on server to get the progress flag:

apt-get upgrade docker-ce docker-ce-cli docker-compose-plugin docker-buildx-plugin

After running those updates the progress flag was then confirmed to be present like this:

docker build --help | grep progress
docker compose --help | grep progress