-
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.
- Loading branch information
Showing
4 changed files
with
85 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
FROM amazoncorretto:11.0.17 | ||
|
||
ADD build/libs/cometTPP2LimelightXML.jar /usr/local/bin/cometTPP2LimelightXML.jar | ||
ADD entrypoint.sh /usr/local/bin/entrypoint.sh | ||
ADD cometTPP2LimelightXML /usr/local/bin/cometTPP2LimelightXML | ||
|
||
RUN chmod 755 /usr/local/bin/entrypoint.sh && chmod 755 /usr/local/bin/cometTPP2LimelightXML | ||
RUN yum update -y && yum install -y procps | ||
|
||
ENTRYPOINT ["/usr/local/bin/entrypoint.sh"] | ||
CMD [] |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#!/usr/bin/env bash | ||
|
||
## Runs cometPercolator2LimelightXML.jar to convert Comet to Limelight XML | ||
|
||
# Works when run through a sym link: | ||
path_of_script="$(dirname "$(readlink -f "$0")")" | ||
|
||
# Jar File to run | ||
jarFileToRun=cometTPP2LimelightXML.jar | ||
|
||
# Java JVM parameters | ||
default_params='-Xmx16192m ' | ||
jvm_parameters=${CONVERTER_JAVA_PARAMS:-$default_params} | ||
|
||
# "$@" is all command line arguments | ||
|
||
java ${jvm_parameters} -Drun_dir=`pwd` -jar ${path_of_script}/${jarFileToRun} \ | ||
"$@" |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -e | ||
|
||
exec "$@" |