GithubHelp home page GithubHelp logo

Comments (11)

eddelbuettel avatar eddelbuettel commented on July 23, 2024

Could you be more specific? Our Dockerfiles are public if you want to riff off them.

from rocker.

andrewcstewart avatar andrewcstewart commented on July 23, 2024

Yes.  A Docker container that hosts an R package repository that is served via http and can be added to one’s list of repositories via setRepositories(addURL=c()).  Does this sound interesting?


Sent from Mailbox

On Mon, Nov 10, 2014 at 4:56 AM, Dirk Eddelbuettel
[email protected] wrote:

Could you be more specific? Our Dockerfiles are public if you want to riff off them.

Reply to this email directly or view it on GitHub:
#79 (comment)

from rocker.

eddelbuettel avatar eddelbuettel commented on July 23, 2024

Do you really need docker for that? I just drop local repos (at work) onto a shared directory (via NFS) and have any odd apache server serve that directory. But if you badly want that Dockerized, maybe we can you you create such a Docker container?

from rocker.

andrewcstewart avatar andrewcstewart commented on July 23, 2024

Clearly you haven't seen this yet: :)

docker-all-the-things

But yeah, that's probably what most people do now. Dockerizing that simple setup could still be very useful for orchestrating an entire R ecosystem in-house.

I understand you're trying to focus on just a few things for now. If I find some time to roll this into a container, would you be interested in putting it under the Rocker namespace?

from rocker.

cboettig avatar cboettig commented on July 23, 2024

@andrewcstewart are you thinking about something that would also serve (say, windows) binaries, or just allow installing packages from source?

from rocker.

eddelbuettel avatar eddelbuettel commented on July 23, 2024

I think so. Both @cboettig and I have real jobs and many other things sucking up time, but we are open to hosting other Dockerfile, with the understanding that you'd maintain yours. We help, but we can't look after all of'em ourselves.

from rocker.

eddelbuettel avatar eddelbuettel commented on July 23, 2024

@cboettig That is still the same. You just run a script over a proper tree containing either source or prebuild binaries -- there is a function in either base R's tools or utils that does it -- and then serve the resulting PACKAGE{.gz}. Been there, done that (in-house that is).

from rocker.

eddelbuettel avatar eddelbuettel commented on July 23, 2024

In other words it is so simple that I never saw the need for something like miniCRAN by REvo's Andrie. Clearly I was wrong. Not a first time, and almost surely not a last time :)

from rocker.

cboettig avatar cboettig commented on July 23, 2024

ha, always wondered how that worked. Seems like that would only give you
binaries for the current OS though? Generating windows, mac and the other
binaries that CRAN provides sounds like it would be more involved, but
maybe I'm missing something.

On Mon, Nov 10, 2014 at 12:55 PM, Dirk Eddelbuettel <
[email protected]> wrote:

@cboettig https://github.com/cboettig That is still the same. You just
run a script over either source or prebuild binaries -- there is a
function in either base R's tools or utils that does it -- and then serve
the resulting PACKAGE{.gz}. Been there, done that (in-house that is).


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

Carl Boettiger
UC Santa Cruz
http://carlboettiger.info/

from rocker.

eddelbuettel avatar eddelbuettel commented on July 23, 2024

Step back for a second.

There are sources. There are OSs.

Each of possibly multiple OSs writes its binary packages (if it has any) into the proper directory structure -- mapping exactly what CRAN has in terms of a file structure.

You then do one call (in any OSs) to summarize these files and versions in PACKAGES{,.gz}. No more, no less.

Lastly, that PACKAGES{,.gz}, as well as the files it describes, is served over http on port 80.

And yes, you can separate all those concerns: the binary building, the index creation, the serving. But to build, say, Windoze binaries you still need a Windoze builder (or a cross-compiler setup, but I digress...)

from rocker.

cboettig avatar cboettig commented on July 23, 2024

@andrewcstewart Just for fun, a dockerized r-repo (e.g. Docker container running an apache server): https://github.com/cboettig/dockerfiles/tree/master/r-repo

Like Dirk points out though, such R repositories are simply a static file structure following certain conventions, so Docker isn't very relevant. For instance, rather than run your own apache server, one could just drop those binaries onto Github: https://github.com/yihui/xran (not suggesting that's a good idea or not, but illustrates the point)

from rocker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.