Skip to content
This repository has been archived by the owner on Jan 19, 2020. It is now read-only.

Generate a custom Julia package registry, mirror, and depot for use on workstations without internet access

License

Notifications You must be signed in to change notification settings

bcbi/archive.2020.OfflineRegistry

Repository files navigation

OfflineRegistry

Bors enabled

Usage

Creating the offline registry

mkdir -p /path/to/desired/location
cd /path/to/desired/location
git clone https://github.com/DilumAluthge/OfflineRegistry
cd OfflineRegistry
# vim offline.toml # Edit offline.toml to meet your requirements
# git add -A
# git commit -m 'Update offline.toml'
export REGISTRY_NAME="MyAwesomeOfflineRegistry"
export REGISTRY_UUID="e8565a5e-8849-4686-8239-e2115313d19d" # Don't use this UUID; generate your own
export GIT_USER_NAME="Myfirstname Mylastname"
export GIT_USER_EMAIL="someone@example.com"
julia make.jl "$REGISTRY_NAME" "$REGISTRY_UUID" "$GIT_USER_NAME" "$GIT_USER_EMAIL"

Using the offline registry

julia> include("/path/to/desired/location/OfflineRegistry/startup.jl")
julia> include("/path/to/desired/location/OfflineRegistry/default-environment.jl")
julia> import Pkg
julia> Pkg.add(["list", "of", "packages", "to", "add"])

About

Generate a custom Julia package registry, mirror, and depot for use on workstations without internet access

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published