Merge pull request #90 from johnnychen94/jc/skip_failed

[Julia] skip failed_resources for 5 days until the next try
This commit is contained in:
Yuxiang Zhang 2020-08-19 20:27:08 +08:00 committed by GitHub
commit 98518db1ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

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.4"' && \
julia -e 'using Pkg; pkg"add StorageMirrorServer@0.1.6"' && \
chmod a+rx -R $JULIA_DEPOT_PATH
# Julia doesn't not yet have a nice solution for centralized package system with preinstalled

View File

@ -15,4 +15,4 @@ REGISTRY="(\"$REGISTRY_NAME\", \"$REGISTRY_UUID\", \"$REGISTRY_UPSTREAM\")"
# For more usage of `mirror_tarball`, please refer to
# https://github.com/johnnychen94/StorageMirrorServer.jl/blob/master/examples/gen_static_full.example.jl
exec julia -e "using StorageMirrorServer; mirror_tarball($REGISTRY, $UPSTREAMS, \"$OUTPUT_DIR\")"
exec julia -e "using StorageMirrorServer; mirror_tarball($REGISTRY, $UPSTREAMS, \"$OUTPUT_DIR\", skip_duration=120)"