summaryrefslogtreecommitdiff
path: root/Dockerfile
diff options
context:
space:
mode:
authorFabian Mastenbroek <mail.fabianm@gmail.com>2017-10-24 12:07:09 +0200
committerFabian Mastenbroek <mail.fabianm@gmail.com>2017-10-24 14:55:54 +0200
commitdad4487fddaccf44240f5d62fa83830f7bbf8a5d (patch)
tree41b6eab49e08a846b5a36e8cf9eb77955ff2761e /Dockerfile
parent25cc35b0e4942e990c01ac6224720e8fe84fd9ae (diff)
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.
Diffstat (limited to 'Dockerfile')
-rw-r--r--Dockerfile20
1 files changed, 0 insertions, 20 deletions
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 <f.s.mastenbroek@student.tudelft.nl>
-
-# 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