This is how I solved it (for now), using second suggestion by
ivarne.I use a two tier setup, two networks one connected to internet (office network), one air gapped network (development network).
System information: openSuSE-13.1 (both networks), julia-0.3.5 (both networks)
Tier one (office network)
- installed julia on an NFS share,
/sharename/local/julia
.
- soft linked
/sharename/local/bin/julia
to /sharename/local/julia/bin/julia
- appended
/sharename/local/bin/
to $PATH
using a script in /etc/profile.d/scriptname.sh
- created
/etc/gitconfig
on all office network machines: [url "https://"] insteadOf = git://
(to solve proxy server problems with github)
- now every user on the office network can simply run
# julia
Pkg.add("PackageName")
is then used to install various packages.
The two networks are connected periodically (with certain security measures ssh, firewall, routing) for automated data exchange for a short period of time.
Tier two (development network)
- installed julia on NFS share equal to tier one.
- When the networks are connected I use a shell script with
rsync -avz --delete
to synchronize the .julia
directory of tier one to tier two for every user.
Conclusion (so far):
It seems to work reasonably well.
As ivarne suggested there are problems if a package is installed AND something more than just file copying is done (compiled?) on tier one, the package wont run on tier two. But this can be resolved with Pkg.build("Pkgname")
.