Cloud-CV / evalai-cli

:cloud: :rocket: Official EvalAI Command Line Tool
https://cli.eval.ai
BSD 3-Clause "New" or "Revised" License
55 stars 63 forks source link

Fix Progress bar for uploading a docker image using CLI #230

Open jayaike opened 4 years ago

jayaike commented 4 years ago

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 commented 4 years ago

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

krtkvrm commented 4 years ago

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

jayaike commented 4 years ago

@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 commented 4 years ago

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 commented 4 years ago

@vkartik97 @Ram81 @KhalidRmb @pushkalkatara

jayaike commented 4 years ago

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

KhalidRmb commented 4 years ago

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

jayaike commented 4 years ago

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 commented 4 years ago

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

jayaike commented 4 years ago

It would be highly appreciated

jayaike commented 4 years ago

@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 commented 4 years ago

Thank you very much