[julia] upgrade to StorageMirrorServer v0.2.0

HTTP.jl is somehow not reliable enough that `HTTP.get` would occasionally hang for unidentified reasons. This version uses `curl` instead of `HTTP.get` to fetch resources, which is more stable and faster.

`curl` dependency is included in julia:1.5 base image so we don't need to install it.
This commit is contained in:
Johnny Chen 2020-09-10 15:54:23 +08:00 committed by GitHub
parent f0fce81c29
commit cb90bfa7b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ LABEL maintainer="Johnny Chen <johnnychen94@hotmail.com>"
ENV JULIA_DEPOT_PATH="/opt/julia"
RUN adduser --uid 2000 tunasync && \
julia -e 'using Pkg; pkg"add StorageMirrorServer@0.1.6"' && \
julia -e 'using Pkg; pkg"add StorageMirrorServer@0.2.0"' && \
chmod a+rx -R $JULIA_DEPOT_PATH
# Julia doesn't not yet have a nice solution for centralized package system with preinstalled