earthly / earthly

Super simple build framework with fast, repeatable builds and an instantly familiar syntax – like Dockerfile and Makefile had a baby.
https://earthly.dev
Mozilla Public License 2.0
11.22k stars 394 forks source link

`WITH DOCKER` load time unit is inccorect when using an alpine-based dind image #4061

Closed alexcb closed 4 months ago

alexcb commented 4 months ago

What went wrong?

when using WITH DOCKER, it displays a load time, e.g.

Loading images done in 2 ms

this is incorrect -- it's actually 2 seconds

What should have happened?

ideally we should be able to display the correct time in milliseconds.

What earthly version?

37134bfa84c232e3cc1839e61b1e51986e9eead0

Buildkit Logs

No response

Other Helpful Information

This occurs when using an alpine based dind image, which does not implement the nanoseconds format:

alex@surfperch:~$ docker run --rm alpine /bin/sh -c 'date +%s%N'
1713994007

alex@surfperch:~$ docker run --rm alpine /bin/sh -c 'date +%s'
1713994010
alexcb commented 4 months ago

duplicate of #3485