Docker configuration

This commit is contained in:
crusader 2017-07-28 14:59:18 +09:00
parent c4df5dc06f
commit 37fa332a83
2 changed files with 28 additions and 0 deletions

27
pom.xml
View File

@ -25,6 +25,9 @@
<hibernate.version>5.2.10.Final</hibernate.version>
<javax.mail.version>1.4.7</javax.mail.version>
<jackson.mapper.version>1.9.13</jackson.mapper.version>
<docker.registry.name></docker.registry.name><!-- leave empty for docker hub; use e.g. "localhost:5000/" for a local docker registry -->
<docker.repository.name>${docker.registry.name}phauer/${project.artifactId}</docker.repository.name>
</properties>
<dependencies>
@ -195,6 +198,30 @@
<outputFileType>implementationFile</outputFileType>
</configuration>
</plugin>
<plugin>
<groupId>com.spotify</groupId>
<artifactId>docker-maven-plugin</artifactId>
<version>1.0.0</version>
<configuration>
<imageName>docker.loafle.net/overflow/${project.artifactId}</imageName>
<dockerDirectory>src/main/docker</dockerDirectory>
<!-- optionally overwrite tags every time image is built with docker:build -->
<forceTags>true</forceTags>
<imageTags>
<imageTag>${project.version}</imageTag>
<imageTag>latest</imageTag>
</imageTags>
<resources>
<resource>
<targetPath>/</targetPath>
<directory>${project.build.directory}</directory>
<include>${project.build.finalName}.jar</include>
</resource>
</resources>
</configuration>
</plugin>
</plugins>
</build>

View File

@ -0,0 +1 @@
FROM openjdk:8-jdk-alpine