mirror of
https://github.com/tuna/tunasync-scripts.git
synced 2025-07-12 09:48:50 +00:00
[julia] upgrade to StorageMirrorServer v0.1.4 and use all official upstreams
This commit is contained in:
@ -11,10 +11,14 @@ LABEL maintainer="Johnny Chen <johnnychen94@hotmail.com>"
|
||||
ENV JULIA_DEPOT_PATH="/opt/julia"
|
||||
|
||||
RUN adduser --uid 2000 tunasync && \
|
||||
julia -e 'using Pkg; pkg"add https://github.com/johnnychen94/StorageMirrorServer.jl#v0.1.1-rc4"' && \
|
||||
julia -e 'using Pkg; pkg"add StorageMirrorServer@0.1.4"' && \
|
||||
chmod a+rx -R $JULIA_DEPOT_PATH
|
||||
|
||||
COPY dockerfiles/julia/startup.jl /usr/local/julia/etc/julia/startup.jl
|
||||
# Julia doesn't not yet have a nice solution for centralized package system with preinstalled
|
||||
# packages. Here we provide a system-wide startup.jl that modifies the DEPOT_PATH and LOAD_PATH
|
||||
# variables for each user.
|
||||
# For more information about this, please refer to https://github.com/JuliaLang/Pkg.jl/issues/1952
|
||||
COPY startup.jl /usr/local/julia/etc/julia/startup.jl
|
||||
|
||||
WORKDIR /julia
|
||||
CMD /bin/bash
|
||||
|
@ -1,3 +1,10 @@
|
||||
# makes /opt/julia a shared depot path so that users can directly find and load
|
||||
# pre-installed packages
|
||||
#
|
||||
# For non-root users, /opt/julia is read-only, trying to add packages would be impossible.
|
||||
# A workaround for this is to start julia with a project folder that is writable, e.g.,
|
||||
# `julia --project=$HOME/.julia/env/1.5"`
|
||||
|
||||
SHARE_DIR = "/opt/julia"
|
||||
|
||||
empty!(DEPOT_PATH)
|
||||
|
Reference in New Issue
Block a user