From a153e7abbb36594c27d918aa37dbf0fea17df3fe Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Fri, 29 Sep 2017 14:03:06 +0200 Subject: Steamline Docker integration This change improves the Docker integration by pre-building the application when building the image to prevent having to build the application at runtime. --- .../src/main/kotlin/nl/atlarge/opendc/platform/JpaExperiment.kt | 1 + 1 file changed, 1 insertion(+) (limited to 'opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaExperiment.kt') diff --git a/opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaExperiment.kt b/opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaExperiment.kt index 104011df..f5a86e64 100644 --- a/opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaExperiment.kt +++ b/opendc-integration-jpa/src/main/kotlin/nl/atlarge/opendc/platform/JpaExperiment.kt @@ -145,5 +145,6 @@ class JpaExperiment(val manager: EntityManager, } logger.info { "Simulation done" } + manager.close() } } -- cgit v1.2.3