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

Support container-based workflow with no precompilation/update required after building image #92

Closed
jlperla opened this issue Dec 29, 2017 · 6 comments

Comments

@jlperla
Copy link

jlperla commented Dec 29, 2017

This is an addendum to #90. I think an important use-case for thinking about the precompilation when using containers for reproducible research and CI. Maybe the design of the package and precompilation system already support this use-case.

In particular,

  • I would love to be able to create a docker image for my department which has precompiled versions of all of the main libraries required by economists.
  • Then, we could write easy scripts for users to run custom scripts for individual projects which use that parent image, get the sourcecode for the computation, etc.
  • The key would be that in the process, no precompilation outside of the users own code would be required.
@stugorf
Copy link

stugorf commented Nov 29, 2018

@jlperla Have you had success using a Project.toml file in a Docker container. I am having this issue: https://stackoverflow.com/q/53548263/10442044

@jlperla
Copy link
Author

jlperla commented Nov 30, 2018

@arnavs May be able to point you towards some of what we did with the QuantEcon docker image.

@arnavs
Copy link

arnavs commented Nov 30, 2018

@stugorf You may have seen the SO, but the issue there is that each RUN command is being executed separately. So activate context from one julia -e line is not used in the next.

It's also good practice to try and combine these things, because each Docker line translates to a distinct layer, which may be overkill.

We have a Docker image with a few different TOML environments here. Would be happy to walk you through it if you think it'd be helpful.

@KristofferC
Copy link
Sponsor Member

Problem seems to have been solved in that stack overflow question. (thx @fredrikekre)

@stugorf
Copy link

stugorf commented Dec 5, 2018 via email

@IanButterworth
Copy link
Sponsor Member

Maybe this could be closed given the development of https://github.com/JuliaLang/PackageCompiler.jl

But perhaps it's more about handling that process more automatically through Pkg, so further work to be done?

@jlperla jlperla closed this as completed Oct 10, 2021
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

5 participants