docker-library / julia

Docker Official Image packaging for julia

Home Page:http://julialang.org/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Using Julia's package manager on Linux requires Git to be installed

tkelman opened this issue · comments

This would make the images larger and can easily be done manually by anyone who wants to use the image, so it should at least be noted in the readme if not installed by default. Try running julia -e 'Pkg.init()' or julia -e 'Pkg.add("JSON")' for example.

Within another few minor versions we should be rewriting the package manager to use LibGit2 and including that in the binaries so this will no longer be necessary. In the meantime figured it was worth opening this.

commented

I ran into this today. I just added RUN apt-get install -y git to my Dockerfile and use RUN Pkg.add("PackagName") in order to use the julia package manager with docker caching.

Is that how this docker image should be used? An alternative is to have the .julia/v0.3/ directory already set up and copy it into the docker. My intuition is that installing git in the image and then using RUN to install packages is the right way to do it, but I am not sure.

@jpfairbanks, yeah installing git and running Pkg.add looks like the right way for now. Do you think it would be better for users if we install git in the image?

commented

Yeah I would build it into the image because I think everyone will use the
package manager. If someone complains about the extra space of the image
you can make a slim tag that doesn't install git.
On May 21, 2015 12:44 PM, "yosifkit" notifications@github.com wrote:

@jpfairbanks https://github.com/jpfairbanks, yeah installing git and
running Pkg.add looks like the right way for now. Do you think it would
be better for users if we install git in the image?


Reply to this email directly or view it on GitHub
#1 (comment).