pjf / exobrain

Automate your life with Exobrain
218 stars 25 forks source link

Unable to install via Docker #60

Open underscorephil opened 10 years ago

underscorephil commented 10 years ago

Howdy!

When following the docker install instructions the following occurs:

# sudo docker.io run -i -t pjf0/exobrain sudo -i -u exobrain
Unable to find image 'pjf0/exobrain' locally
Pulling repository pjf0/exobrain
2014/07/24 00:26:18 Error: No such image: pjf0/exobrain (tag: latest)

I was also not able to find the image when searching in the docker registry directly.

--- Want to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/3302589-unable-to-install-via-docker?utm_campaign=plugin&utm_content=tracker%2F347315&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F347315&utm_medium=issues&utm_source=github).
pjf commented 10 years ago

Oh noes! One sec...

pjf commented 10 years ago

So, my knowledge of docker is still that of total n00b. There's an image at https://registry.hub.docker.com/u/pjf0/exobrain/ ...

Does sudo docker.io pull pjf0/exobrain work by itself?

underscorephil commented 10 years ago

Appears to:

# sudo docker.io pull pjf0/exobrain
Pulling repository pjf0/exobrain
#

I am new to docker as well...

underscorephil commented 10 years ago

Though it does not show up in docker.io ps after...

mattmay commented 10 years ago

I'm having the same issue. It appears you need to tag your build "latest" in order for docker run to do its thing. If you look at other Docker repos, they all appear to have this tag, and docker run appears to call for it by default.

docker tag pjf0:exobrain:latest

http://stackoverflow.com/questions/22080706/how-to-create-named-and-latest-tag-in-docker

pjf commented 10 years ago

Back from the burn and working on this now!

pjf commented 10 years ago

Aha! I had unpushed changes, and that seemed to include the latest tag! My apologies for the delay, can you check to see if we've got improved docker joy now?

mattmay commented 10 years ago

Fixed, but now failing to run in its container. First, I added ~/perl5/bin to $PATH, since that was where I found the script, but it appears the container is missing some dependencies and/or paths.

First run: root@5082eb2bb499:/home/exobrain# exobrain setup IPC::System::Simple required for Fatalised/autodying system() at /hom e/exobrain/perl5/bin/exobrain line 9. BEGIN failed--compilation aborted at /home/exobrain/perl5/bin/exobrain line 9. root@5082eb2bb499:/home/exobrain#

Installed IPC::System::Simple.

Second run: root@5082eb2bb499:/home/exobrain/perl5/bin# exobrain setup Setting up exobrain... It doesn't look like ubic is installed; at least, I can't find //ubic . Have you run cpanm Ubic and ubic-admin setup?

Halting (Ubic not found) root@5082eb2bb499:/home/exobrain/perl5/bin#

So the problem is that docker will log you in as root, and exobrain looks to $HOME/ubic (-> /ubic), while it's in /home/exobrain/ubic. I set $HOME to /home/exobrain and got setup to run, and I'll poke around at other components as I go.

Summary: install IPC::System::Simple make exobrain root-friendly by either putting ~/ubic somewhere in /usr or setting $HOME to /home/exobrain

On Thu, Sep 4, 2014 at 1:41 PM, Paul Fenwick notifications@github.com wrote:

Aha! I had unpushed changes, and that seemed to include the latest tag! My apologies for the delay, can you check to see if we've got improved docker joy now?

— Reply to this email directly or view it on GitHub https://github.com/pjf/exobrain/issues/60#issuecomment-54541504.

pjf commented 10 years ago

@mattmay : You rock, thank you so much for reporting this! (And my apologies so much for the delays; I have stable accommodation and WiFi again come Monday, but I'm trying to squeeze in as much coding as I can between now and then.)