Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
memoriav
Memobase 2020
services
Cantaloupe on Docker
Commits
c1c7081e
Unverified
Commit
c1c7081e
authored
Apr 05, 2021
by
Sebastian Schüpbach
Browse files
use heapcache
parent
b0be4920
Pipeline
#24154
passed with stage
in 5 minutes and 19 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Dockerfile
View file @
c1c7081e
...
...
@@ -16,7 +16,7 @@ ADD ./cantaloupe.properties /cantaloupe/cantaloupe.properties
FROM
openjdk:11-jre-slim
ENTRYPOINT
["/home/cantaloupe/run.sh", "4.1.7"]
CMD
["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties", "-Xmx
2g
"]
CMD
["-Dcantaloupe.config=/home/cantaloupe/app/cantaloupe.properties", "-Xmx
4g", "-Xms 800m
"]
ARG
HTTP_PORT=8182
ARG
BUILD_WITH=""
HEALTHCHECK
--start-period=30s CMD curl -sf 0.0.0.0:${HTTP_PORT} -o /dev/null || exit 1
...
...
cantaloupe.properties
View file @
c1c7081e
...
...
@@ -470,7 +470,7 @@ cache.server.derivative.enabled = true
# Available values are `FilesystemCache`, `JdbcCache`, `RedisCache`,
# `HeapCache`, `S3Cache`, and `AzureStorageCache`.
cache.server.derivative
=
Redis
Cache
cache.server.derivative
=
Heap
Cache
# Amount of time derivative cache content remains valid. Set to blank or 0
# for forever.
...
...
@@ -478,7 +478,7 @@ cache.server.derivative.ttl_seconds = 2592000
# Whether to use the Java heap as a "level 1" cache for image infos, either
# independently or in front of a "level 2" derivative cache (if enabled).
cache.server.info.enabled
=
tru
e
cache.server.info.enabled
=
fals
e
# If true, when a source reports that the requested source image has gone
# missing, all cached information relating to it (if any) will be deleted.
...
...
@@ -523,7 +523,7 @@ FilesystemCache.dir.name_length = 2
# Target cache size, in bytes or a number ending in M, MB, G, GB, etc.
# This is not a hard limit, and may be transiently exceeded.
# Ensure your heap can accommodate this size.
HeapCache.target_size
=
2
G
HeapCache.target_size
=
3
G
# If true, the cache contents will be written to a file on exit and during
# cache worker shifts, and read back in at startup.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment