Skip to content

Commit

Permalink
OPENNLP-1227: Adding OpenNLP container. (#340)
Browse files Browse the repository at this point in the history
* OPENNLP-1227: Adding OpenNLP container.

* OPENNLP-1227: Updating base image.
  • Loading branch information
jzonthemtn authored Jun 21, 2020
1 parent 7c10174 commit 38e1e07
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 0 deletions.
37 changes: 37 additions & 0 deletions opennlp-distr/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -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>
10 changes: 10 additions & 0 deletions opennlp-distr/src/main/docker/Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]

0 comments on commit 38e1e07

Please sign in to comment.