forked from Islandora-Devops/isle-buildkit
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 307 - Adding xms and xmx for Cantaloupe heap (Islandora-Devops#310
) * Issue 307 - Adding xms and xmx for Cantaloupe heap * Added with-contenv but still no joy * with-contenv added * Add missing libjpeg-turbo library * libjpeg-turbo library location --------- Co-authored-by: Noah W. Smith <[email protected]>
- Loading branch information
1 parent
dec5144
commit 13ae1df
Showing
3 changed files
with
10 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
#!/usr/bin/env bash | ||
#!/command/with-contenv bash | ||
# shellcheck shell=bash | ||
set -e | ||
|
||
# When bind mounting we need to ensure that we | ||
# actually can write to the folder. | ||
chown cantaloupe:cantaloupe /data | ||
|
||
exec s6-setuidgid cantaloupe java -Dcantaloupe.config=/opt/cantaloupe/cantaloupe.properties -jar /opt/cantaloupe/cantaloupe.jar | ||
exec with-contenv s6-setuidgid cantaloupe java -Dcantaloupe.config=/opt/cantaloupe/cantaloupe.properties -Xms"${CANTALOUPE_HEAP_MIN}" -Xmx"${CANTALOUPE_HEAP_MAX}" -jar /opt/cantaloupe/cantaloupe.jar |