I am trying to build a docker image with Juno pre-installed.
However, after adding the line
RUN apm install uber-juno
and when I run Atom, it will show the usually, “Juno: Installing Atom packages” pop-ups and it is quite a few minutes before the setup process is complete.
I wonder if there is a way to do all those in the command-line so that the first time I open Juno, it’s already set up?
I also need to answer Yes to the question “Julia-Client: Open Juno-specific panes on startup?”.
Just install the packages that uber-juno does the trick for me except answering Yes to the question. But that should be left to the user, I just need a way to remember that preference once set! Probably by mounting a folder that serves as the config folder.
add the below to the Dockerfile is helpful
RUN apm install language-julia && \
apm install julia-client && \
apm install ink && \
julia -e "using Pkg; pkg\"add Atom Juno\"; pkg \"precompile\""
How do I externalise the Juno settings? E.g. if I want to persist the settings across docker sessions (docker deletes everything after run).
Is there like a config file taht I need to mount from my local drive? Where would that config/setting file be located? How do I point Juno to that config file?
This might be an Atom questoin rather than a Juno question. But when I am done with this I will release this image so other Julia users can just docker run juno to enjoy the benefits of Juno. Thanks in advance.
yes, this is right. Juno just uses atom’s global config settings which is usually located in ~/.atom/config.cson (you can see its manual)
Also you can specify which .atom directory you want to refer to via setting ATOM_HOME env variable
Running these have no impact at all. I am running root because it’s inside docker. Could that be the issue?
I can see that updating the settings through the GUI updates the “~/.atom/config.cson” file but apm config set “julia-client.firstBoot” false has no impact.
I still get the same dialog boxes and no toolbar
Update
I see that ~/.atom/.apmrc does receive the updates but those seem to be used by Juno. I see these 3 lines in .apmrc
Yeah, apm config set doesn’t do what you want (you can use that to configure apm itself, but not Atom). I’d suggest either mounting the config file from the host or putting something like