You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opennlp.apache.org by jz...@apache.org on 2020/06/21 11:39:59 UTC
[opennlp] branch master updated: OPENNLP-1227: Adding OpenNLP
container. (#340)
This is an automated email from the ASF dual-hosted git repository.
jzemerick pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/opennlp.git
The following commit(s) were added to refs/heads/master by this push:
new 38e1e07 OPENNLP-1227: Adding OpenNLP container. (#340)
38e1e07 is described below
commit 38e1e072e5bbffc721ca9c9edd6f832d074e06fb
Author: Jeff Zemerick <je...@mtnfog.com>
AuthorDate: Sun Jun 21 07:39:51 2020 -0400
OPENNLP-1227: Adding OpenNLP container. (#340)
* OPENNLP-1227: Adding OpenNLP container.
* OPENNLP-1227: Updating base image.
---
opennlp-distr/pom.xml | 37 ++++++++++++++++++++++++++++++++
opennlp-distr/src/main/docker/Dockerfile | 10 +++++++++
2 files changed, 47 insertions(+)
diff --git a/opennlp-distr/pom.xml b/opennlp-distr/pom.xml
index 5a256b6..bd02766 100644
--- a/opennlp-distr/pom.xml
+++ b/opennlp-distr/pom.xml
@@ -157,6 +157,43 @@
</plugins>
</build>
</profile>
+ <profile>
+ <id>docker</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>com.spotify</groupId>
+ <artifactId>docker-maven-plugin</artifactId>
+ <version>0.4.13</version>
+ <executions>
+ <execution>
+ <phase>package</phase>
+ <goals>
+ <goal>build</goal>
+ </goals>
+ </execution>
+ </executions>
+ <configuration>
+ <imageName>apacheopennlp</imageName>
+ <dockerDirectory>${project.basedir}/src/main/docker</dockerDirectory>
+ <imageTags>
+ <imageTag>${project.version}</imageTag>
+ </imageTags>
+ <buildArgs>
+ <OPENNLP_BINARY>apache-opennlp-${project.version}-bin.tar.gz</OPENNLP_BINARY>
+ </buildArgs>
+ <resources>
+ <resource>
+ <targetPath>/</targetPath>
+ <directory>${project.build.directory}</directory>
+ <include>apache-opennlp-${project.version}-bin.tar.gz</include>
+ </resource>
+ </resources>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
</profiles>
</project>
diff --git a/opennlp-distr/src/main/docker/Dockerfile b/opennlp-distr/src/main/docker/Dockerfile
new file mode 100644
index 0000000..0db8985
--- /dev/null
+++ b/opennlp-distr/src/main/docker/Dockerfile
@@ -0,0 +1,10 @@
+FROM openjdk:11-jre-slim
+MAINTAINER Apache OpenNLP (dev@opennlp.apache.org)
+
+ARG OPENNLP_BINARY
+
+ENV OPENNLP_BASE_DIR /opt/opennlp
+
+ADD $OPENNLP_BINARY $OPENNLP_BASE_DIR
+
+CMD ["sh"]