initial checkin
This commit is contained in:
4
.gitignore
vendored
Normal file
4
.gitignore
vendored
Normal file
@@ -0,0 +1,4 @@
|
||||
# Maven
|
||||
.settings
|
||||
.project
|
||||
target
|
6
Dockerfile
Normal file
6
Dockerfile
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
FROM ubuntu:${ubuntu.version}
|
||||
|
||||
RUN apt update
|
||||
RUN apt -y install openjdk-${java.majorVersion}-jdk-headless
|
||||
|
54
pom.xml
Normal file
54
pom.xml
Normal file
@@ -0,0 +1,54 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.inteligr8</groupId>
|
||||
<artifactId>ubuntu-jdk</artifactId>
|
||||
<version>20.04-11</version>
|
||||
<name>Ubuntu/JDK Docker Image</name>
|
||||
<packaging>pom</packaging>
|
||||
|
||||
<properties>
|
||||
<ubuntu.version>20.04</ubuntu.version>
|
||||
<java.majorVersion>11</java.majorVersion>
|
||||
<image.name>inteligr8/${project.artifactId}</image.name>
|
||||
<image.tag>${project.version}</image.tag>
|
||||
<docker.push.registry>docker.yateslong.us</docker.push.registry>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>io.fabric8</groupId>
|
||||
<artifactId>fabric8-maven-plugin</artifactId>
|
||||
<version>4.4.0</version>
|
||||
<configuration>
|
||||
<images>
|
||||
<image>
|
||||
<name>${image.name}:${image.tag}</name>
|
||||
</image>
|
||||
</images>
|
||||
<contextDir>${basedir}</contextDir>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>docker-build</id>
|
||||
<phase>package</phase>
|
||||
<goals><goal>build</goal></goals>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>docker-push</id>
|
||||
<phase>deploy</phase>
|
||||
<goals><goal>push</goal></goals>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
</project>
|
Reference in New Issue
Block a user