pento / testpress

Tool for helping you get a WordPress Core test environment up and running.
GNU General Public License v2.0
68 stars 2 forks source link

No Feedback when Docker is downloading #43

Open pento opened 6 years ago

pento commented 6 years ago

It can take several minutes for Docker to download all the images it needs on first run, and there's nothing to show that it's actually doing anything.

pento commented 6 years ago

So, this is fun.

curl --no-buffer -XPOST --unix-socket /var/run/docker.sock "http://localhost/images/create?tag=alpine&fromImage=nginx"

I need to write something to loop through each of the images we need to create, call the API to create that image, then summarise the continually updating data into something that can be sent to the UI as a progress meter.

pento commented 6 years ago

Alternatively, a service could figure out what the total is, WPDE can grab that total, then the progress meter just has to add up everything it's downloaded so far.

I like this idea better.

pento commented 6 years ago

Oh, that only works if we're downloading a fresh install: it won't give the right status for partial downloads.