evalai-cli icon indicating copy to clipboard operation
evalai-cli copied to clipboard

Fix Progress bar for uploading a docker image using CLI

Open jayaike opened this issue 5 years ago • 12 comments

I have fixed the progress bar for uploading a docker image using the CLI.

I did this by using "\r" at the end and flush=True to make sure that it refreshes the CLI every time instead of continuing on a new line

@pushkalkatara @KhalidRmb @vkartik97 I can only show you how my fix works. I can't test the actual function because as described below. Docker will hang and crash my system.

Here is how it works.

Ignore the time.sleep part of it. It is just there to emulate a delayed process.

final_5e06fb714a34a00014e845c9_692445

jayaike avatar Dec 27 '19 18:12 jayaike

@vkartik97 I have issues with docker on my laptop. Can anyone else help me with this please?

jayaike avatar Dec 27 '19 22:12 jayaike

@nsjcorps Can you please post the issue or error here?

krtkvrm avatar Dec 27 '19 22:12 krtkvrm

@vkartik97 @Ram81 @khalidRmb My system can't carry the installation. The RAM is quite small. It would be highly appreciated if someone could help me review my work.

jayaike avatar Dec 28 '19 00:12 jayaike

I can barely install docker. If I start up the server, my system will crash. I've tried. There are no other computers here for me to use.

jayaike avatar Dec 28 '19 01:12 jayaike

@vkartik97 @Ram81 @KhalidRmb @pushkalkatara

jayaike avatar Dec 28 '19 05:12 jayaike

Pushing images doesn't work on my computer. Even if it's from a cli application

jayaike avatar Dec 28 '19 05:12 jayaike

@nsjcorps What's the issue? Are you still unable to install Docker?

KhalidRmb avatar Dec 28 '19 06:12 KhalidRmb

The issue is that my laptop has a very small RAM so docker doesn't work on my system. If I even attempt to start it my system is going to shut it down @KhalidRmb

jayaike avatar Dec 28 '19 06:12 jayaike

@KhalidRmb, That is why I am requesting that someone help me test the change I made as requested by @vkartik97

jayaike avatar Dec 28 '19 06:12 jayaike

It would be highly appreciated

jayaike avatar Dec 28 '19 06:12 jayaike

@pushkalkatara @KhalidRmb @vkartik97 I can only show you how my fix works. I can't test the actual function

Here is how it works.

Ignore the time.sleep part of it. It is just there to emulate a delayed process.

final_5e06fb714a34a00014e845c9_692445

jayaike avatar Dec 28 '19 06:12 jayaike

Thank you very much

jayaike avatar Dec 28 '19 07:12 jayaike