-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Docker update * updated README * Specified logo * Added docker badges
- Loading branch information
1 parent
ac7a36f
commit 67e2a26
Showing
9 changed files
with
48 additions
and
8 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
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,17 @@ | ||
#!/bin/bash | ||
|
||
set -Eeuxo pipefail | ||
|
||
DOCKER_RUN_OPTIONS="-i" | ||
|
||
# Only allocate tty if we detect one | ||
if [ -t 0 ] && [ -t 1 ]; then | ||
DOCKER_RUN_OPTIONS="$DOCKER_RUN_OPTIONS -t" | ||
fi | ||
|
||
ABSPATH=$(realpath "$1") | ||
DIR=$(dirname "$ABSPATH") | ||
FILE=/host/$(basename "$ABSPATH") | ||
shift | ||
|
||
docker run "$DOCKER_RUN_OPTIONS" --mount type=bind,source="$DIR",target=/host theta-xcfa-cli:latest --model "$FILE" "$@" |
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,16 @@ | ||
FROM openjdk:17.0.2-slim | ||
|
||
RUN apt-get update && \ | ||
apt-get install -y --no-install-recommends libgomp1 libmpfr-dev && \ | ||
apt-get clean && rm -rf /var/lib/apt/lists/* | ||
|
||
RUN mkdir theta | ||
COPY . theta | ||
WORKDIR /theta | ||
RUN ./gradlew clean && \ | ||
./gradlew theta-xcfa-cli:build && \ | ||
mv subprojects/xcfa/xcfa-cli/build/libs/theta-xcfa-cli-*-all.jar /theta-xcfa-cli.jar | ||
WORKDIR / | ||
|
||
ENV LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./theta/lib/" | ||
ENTRYPOINT ["java", "-jar", "theta-xcfa-cli.jar"] |
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