Docker configuration
This commit is contained in:
parent
c4df5dc06f
commit
37fa332a83
27
pom.xml
27
pom.xml
|
@ -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>
|
||||
|
||||
|
|
1
src/main/docker/Dockerfile
Normal file
1
src/main/docker/Dockerfile
Normal file
|
@ -0,0 +1 @@
|
|||
FROM openjdk:8-jdk-alpine
|
Loading…
Reference in New Issue
Block a user