You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@metamodel.apache.org by ka...@apache.org on 2019/01/24 05:25:40 UTC
[metamodel-membrane] 04/06: Made build simpler by simply copying
the built .jar file to docker image
This is an automated email from the ASF dual-hosted git repository.
kaspersor pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/metamodel-membrane.git
commit a041428382bc7778a9994fc0dcf09fe798b24e9d
Author: Kasper Sørensen <i....@gmail.com>
AuthorDate: Tue Jan 15 19:27:45 2019 -0800
Made build simpler by simply copying the built .jar file to docker image
---
Dockerfile | 10 +++++-----
pom.xml | 4 ++--
2 files changed, 7 insertions(+), 7 deletions(-)
diff --git a/Dockerfile b/Dockerfile
index 40b8c2c..356e721 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -15,15 +15,15 @@
# specific language governing permissions and limitations
# under the License.
-FROM maven:3-jdk-8
+FROM adoptopenjdk/openjdk8:latest
# Set data directory used for the app's persistence
VOLUME /data
ENV DATA_DIRECTORY=/data
-COPY . /usr/src/app
-WORKDIR /usr/src/app
+RUN mkdir /app
-RUN mvn -B -q clean install -Pdockerbuild -DskipTests
+COPY undertow/target/membrane-undertow-server.jar /app
+WORKDIR /app
-CMD java -server -jar undertow/target/membrane-undertow-server.jar
+CMD java -server -jar membrane-undertow-server.jar
diff --git a/pom.xml b/pom.xml
index bfc2c50..b27cad8 100644
--- a/pom.xml
+++ b/pom.xml
@@ -57,8 +57,8 @@ under the License.
</modules>
</profile>
<profile>
- <!-- Minimal profile for running just the docker image build -->
- <id>dockerbuild</id>
+ <!-- Minimal profile for running just the undertow build without Newman -->
+ <id>minimal</id>
<modules>
<module>swagger-codegen</module>
<module>core</module>