Sign inSign up

chathuru/s2i-maven-java

By chathuru

•Updated over 6 years ago

Image
1

887

chathuru/s2i-maven-java repository overview

⁠Description

This container image includes Java 8, Mavan 3.6.3 and Tomcat 8.5.54 as a S2I⁠ base image for your Java 8 applications. This image is based on centos/s2i-base-centos7⁠. This image can be used to build and run *.java and *.war. Dockerfile can be found at https://github.com/Chathuru/s2i-maven-java⁠

⁠Usage

To build a simple maven-web-project⁠ webapp using standalone S2I⁠ and then run the resulting image with Docker execute:

$ s2i build https://github.com/Chathuru/maven-web-project.git chathuru/s2i-maven-java hellow-java
$ docker run -p 8080:8080 hellow-java

⁠Environment variables

NameDefaultDescription
MVN_GOALSclean packageMaven goals to execute
MVN_SKIP_TESTStrueIf tests should be skipped
MVN_OPTSNoneAdditional options handed to Maven

For Information about how those vars can be configured see the official docs on Build Strategy Options⁠

Tag summary

Content type

Image

Digest

Size

267.2 MB

Last updated

over 6 years ago

docker pull chathuru/s2i-maven-java