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

Environment variable for specifying custom system image (-J, --sysimage) #37895

Closed
tomyun opened this issue Oct 5, 2020 · 3 comments
Closed

Comments

@tomyun
Copy link
Contributor

tomyun commented Oct 5, 2020

There is no environment variable equivalent to -J/--sysimage option for specifying a custom image for Julia instance. I think supporting a variable like JULIA_SYSIMAGE can be quite useful when deploying Julia for custom environment, i.e. deploying in a Docker container with custom system image baked in.

Currently, one would have to manually add an option every time or create a wrapper script to launch Julia with custom image, especially when replacing default system image is not an option (i.e. repo2docker does not allow root privileges for touching system image when using default Julia buildpak).

@akosuas
Copy link

akosuas commented Nov 11, 2020

I'd also like this - I think it is a duplicate of #36843 though

@PallHaraldsson
Copy link
Contributor

PallHaraldsson commented Oct 13, 2021

I'm not sure about this. Is it really useful? I'm thinking if someone can get to change my default shell environment, then they could trick me into running arbitrary code, right? Maybe I'm too paranoid and shouldn't worry about that. If that happens, then I guess I have bigger problems, and I should e.g. be able trust my system administrator (hackers could also change my code, but it would potentially be more obvious than with the env variable).

Maybe we already have this problem with LD PRELOAD, so might as well do this.

Isn't there a good workaround with using PackageCompiler.jl and/or "create a wrapper script to launch Julia with custom image"?

@vtjnash
Copy link
Member

vtjnash commented Oct 13, 2021

Most things do not need a environment variable duplicate

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

4 participants