Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to install via Docker #60

Open
underscorephil opened this issue Jul 24, 2014 · 9 comments
Open

Unable to install via Docker #60

underscorephil opened this issue Jul 24, 2014 · 9 comments

Comments

@underscorephil
Copy link

underscorephil commented Jul 24, 2014

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
Copy link
Owner

pjf commented Jul 24, 2014

Oh noes! One sec...

@pjf
Copy link
Owner

pjf commented Jul 24, 2014

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
Copy link
Author

Appears to:

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

I am new to docker as well...

@underscorephil
Copy link
Author

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

@mattmay
Copy link

mattmay commented Aug 28, 2014

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
Copy link
Owner

pjf commented Sep 4, 2014

Back from the burn and working on this now!

@pjf
Copy link
Owner

pjf commented Sep 4, 2014

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
Copy link

mattmay commented Sep 4, 2014

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 [email protected]
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
#60 (comment).

@pjf
Copy link
Owner

pjf commented Sep 4, 2014

@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.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants