From dad4487fddaccf44240f5d62fa83830f7bbf8a5d Mon Sep 17 00:00:00 2001 From: Fabian Mastenbroek Date: Tue, 24 Oct 2017 12:07:09 +0200 Subject: bug(#6): Improve Docker deployment This change improves the Docker deployment by moving the build process from runtime to (image) build time. Also, the opendc-integration-jpa module now consists of a core and mysql module, where the mysql module is a specific deployment of the integration. --- Dockerfile | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 Dockerfile (limited to 'Dockerfile') diff --git a/Dockerfile b/Dockerfile deleted file mode 100644 index f8de6b54..00000000 --- a/Dockerfile +++ /dev/null @@ -1,20 +0,0 @@ -FROM gradle:alpine -MAINTAINER Fabian Mastenbroek - -# Copy OpenDC simulator -COPY ./ /home/gradle/simulator - -# Fix permissions -USER root -RUN chown -R gradle:gradle /home/gradle/simulator && \ - chmod -R 771 /home/gradle/simulator -USER gradle - -# Set the working directory to the JPA integration -WORKDIR /home/gradle/simulator/opendc-integration-jpa - -# Build the application -RUN gradle --no-daemon installDist - -# Run the application -CMD build/install/opendc-integration-jpa/bin/opendc-integration-jpa -- cgit v1.2.3