IBM / clai

Command Line Artificial Intelligence or CLAI is an open-sourced project from IBM Research aimed to bring the power of AI to the command line interface.
https://clai-home.mybluemix.net/
MIT License
475 stars 73 forks source link

Having problems setting up CLAI container in Ubuntu 14.0.4 #26

Closed sarathsreedharan closed 4 years ago

sarathsreedharan commented 4 years ago

Describe the bug I am trying to follow the steps mentioned in the README to set up the CLAI container on my Ubuntu 14.0.4 system (Linux en4119722l 4.4.0-75-generic #96~14.04.1-Ubuntu and Docker version 1.6.2, build 7c8fca2), but the command BuildDockerImage.sh is failing while reporting missing flags

To Reproduce

clai$ sudo ./BuildDockerImage.sh
===============================================================

 Phase 1: Building CLAI Container --no-cache

===============================================================
docker: "build" requires 1 argument. See 'docker build --help'.

real    0m0.016s
user    0m0.016s
sys 0m0.000s
Failed to build CLAI Playground Container. Aborting Build.
madhavanpallan commented 4 years ago

1) I believe 'clai' setup on the website is on top of Ubuntu (xenial xerus, 4.4.0-173-generic). I also, see most of the tests are run on 'xenial'. Basically, ubuntu 16.04 LTS. I personally tested it on ubuntu 18.04 LTS (Bionic Beaver). I am not sure about backports though. clai_on_website

dowem commented 4 years ago

FYI I tried to replicate this today on a couple of different attempts. My only development machine at the moment is a current Mac. I grabbed a vanilla ubuntu 14.04 instance to run in docker on my mac to simulate your host environment. Within that instance, I tried to build CLAI (with some tricks to get the docker daemon to start from within my ubuntu container such as invoking the docker daemon with no networking as a workaround to make it launch without failure) but I get another issue with the docker build than you do. My issue trying to replicate that environment seems to be a direct result of my attempt to do things nested in docker. If I have time later in the week I will try some more workarounds to replicate your issue, but so far I cannot replicate it here. I encourage anyone else in the community if they have the means to replicate or confirm this issue to let us know!

madhavanpallan commented 4 years ago

Greetings, I was able to replicate the issue and solve it. I installed ubuntu 14.04 (Grabbed from here:- http://releases.ubuntu.com/14.04/) on a 32GB flash drive. After installing docker, I did run an example container to check my docker running perfectly. Next step was to run the command "sudo ./BuildDockerImage.sh" it was giving out the issue as mentioned above:- issue_Rebuilt

When I ran 'docker build --help', I understood the issue. It was the extra flag value that we were passing. Hence, removed the extra flag and ran the below command.

"sudo docker build -f Dockerfile.CLAI -t claiplayground ."

docker_build_followed_by_run Above you can see a container formation, followed by which I ran "sudo ./RunDockerImage.sh" and other instructions remain the same. docker_list And finally the testing of CLAI. Output Now, we have a working clai environment in "Ubuntu 14.04",(Codename - "Trusty Tahr"). Yay, one more LTS in the list of tested ubuntu O.S.!!

TathagataChakraborti commented 4 years ago

Awesome!! @madhavanpallan 👏👏

@sarathsreedharan can you check once if that works for you?

madhavanpallan commented 4 years ago

Thanks @TathagataChakraborti :)

sarathsreedharan commented 4 years ago

That fixed it, thanks guys!!