-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'refs/heads/master' into feature/messaging
# Conflicts: # src/main/scala/com/campudus/tableaux/Starter.scala # src/main/scala/com/campudus/tableaux/controller/TableauxController.scala # src/test/scala/com/campudus/tableaux/testtools/TableauxTestBase.scala
- Loading branch information
Showing
93 changed files
with
7,106 additions
and
2,406 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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,5 +1,13 @@ | ||
# ignore all files and folders for Docker build context ... | ||
** | ||
|
||
# ...except binaries from gradle build | ||
!build/libs/* | ||
# except the following files and folders | ||
!src | ||
!build.gradle | ||
!gradle.properties | ||
!settings.gradle | ||
|
||
# files for testing | ||
!role-permissions-test.json | ||
!conf-jenkins.json | ||
!conf-example.json |
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 |
---|---|---|
@@ -1,7 +1,28 @@ | ||
FROM openjdk:11.0.16-jre-slim | ||
# to use APP_HOME in other stages, we need to redeclare it in each stage (not on docker for mac) | ||
ARG APP_HOME=/usr/src/app | ||
|
||
WORKDIR /usr/src/app | ||
FROM gradle:7.4.1-jdk17 as cacher | ||
ARG APP_HOME | ||
ENV GRADLE_USER_HOME /cache | ||
WORKDIR $APP_HOME | ||
COPY build.gradle gradle.properties settings.gradle ./ | ||
# prevent errors from spotless b/c in cacher stage we have no source files yet | ||
RUN gradle testClasses assemble -x spotlessScala | ||
|
||
COPY ./build/libs/grud-backend-0.1.0-fat.jar ./tableaux-fat.jar | ||
FROM cacher as builder | ||
ARG APP_HOME | ||
ENV GRADLE_USER_HOME /cache | ||
WORKDIR $APP_HOME | ||
COPY --from=cacher /cache /cache | ||
# prevent from strange docker error when built without buildkit, see: https://github.com/moby/moby/issues/37965 | ||
RUN true | ||
COPY --chown=gradle:gradle . $APP_HOME | ||
RUN gradle -v \ | ||
&& gradle testClasses assemble \ | ||
&& mv conf-jenkins.json conf-test.json | ||
|
||
FROM openjdk:21-slim as prod | ||
ARG APP_HOME | ||
WORKDIR $APP_HOME | ||
COPY --from=builder $APP_HOME/build/libs/grud-backend-0.1.0-fat.jar ./tableaux-fat.jar | ||
CMD [ "java", "-Xmx512M", "-jar", "./tableaux-fat.jar", "-conf /config.json" ] |
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.