-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'dev' into ck/#69-slackVoltageAngle
# Conflicts: # CHANGELOG.md
- Loading branch information
Showing
37 changed files
with
1,137 additions
and
133 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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
FROM openjdk:17-slim | ||
|
||
# USAGE: | ||
# build with ARG version and if applicable with ARG snapshot suffix | ||
# e.g.: docker build --build-arg version=2.1.0 --build-arg snapshotSuffix=-SNAPSHOT -t simona . | ||
# run by mounting directory | ||
# e.g. docker run -v `realpath input`:/input --rm simona | ||
# note: this does not work for windows so you have to enter the absolute path manually and escape the \'s | ||
|
||
ARG version | ||
# snapshot suffix for jar files is "-SNAPSHOT" | ||
ARG snapshotSuffix="" | ||
|
||
ENV jarFile="simona-${version}${snapshotSuffix}-all.jar" | ||
ENV config="" | ||
|
||
RUN mkdir exec \ | ||
&& mkdir input | ||
|
||
# copy simona fat jar into container | ||
COPY build/libs/$jarFile /exec/ | ||
# inputData is mounted upon running | ||
VOLUME /input | ||
|
||
ENTRYPOINT ["sh", "-c", "java -jar exec/${jarFile} --config=${config}"] |
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
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
Oops, something went wrong.