Giter Site home page Giter Site logo

fortem751 / s2i-java-1 Goto Github PK

View Code? Open in Web Editor NEW

This project forked from luiscoms/s2i-java

0.0 1.0 0.0 145 KB

OpenShift's Java S2I Builder image. Suitable for java (fatjar) types of applications, microservices, springboot, vert.x, wildfly swarm, dropwizard,...

Shell 63.21% Dockerfile 9.74% Makefile 3.61% Java 23.45%

s2i-java-1's Introduction

OpenShift S2I Builder for Java Docker images

Build Status

Supported tags and respective Dockerfile links

This repository contains the source for building various versions of the Java application as a reproducible Docker image using source-to-image. Users can choose between RHEL and CentOS based builder images. The resulting image can be run using Docker.

For more information about using these images with OpenShift, please see the official OpenShift Documentation.

Versions

Java versions currently provided are:

  • JDK-1.8 + Gradle 2
  • JDK-1.8 + Maven 3
  • JDK-1.8 + Gradle 2 + Maven 3

CentOS versions currently supported are:

  • CentOS7

Installation

To build a Java image, choose either the Maven or Gradle with:

  • Gradle image

    This image is also available on DockerHub. To download it run:

    $ docker pull luiscoms/s2i-java:1.8-gradle
    

    To build a Java image with Gradle from scratch run:

    $ git clone https://github.com/luiscoms/s2i-java.git
    $ cd s2i-java
    $ make build VERSION=1.8-gradle
    
  • Maven image

    To build a Java image with Maven, you need to run the build on a properly.

    $ git clone https://github.com/luiscoms/s2i-java.git
    $ cd s2i-java
    $ make build VERSION=1.8-maven
    

    This image is also available on DockerHub. To download it run:

    $ docker pull luiscoms/s2i-java:1.8-maven
    
  • Gradle + Maven image

    To build a Java image with Gradle and Maven, you need to run the build on a properly.

    $ git clone https://github.com/luiscoms/s2i-java.git
    $ cd s2i-java
    $ make build VERSION=1.8-all
    

    This image is also available on DockerHub. To download it run:

    $ docker pull luiscoms/s2i-java:1.8-all
    

Or

```
$ docker pull luiscoms/s2i-java
```

Notice: By omitting the VERSION parameter, the build/test action will be performed on all provided versions of Java.

Usage

For information about usage of Dockerfile for Java 1.8 with Gradle, see usage documentation.

For information about usage of Dockerfile for Java 1.8 with Maven, see usage documentation.

For information about usage of Dockerfile for Java 1.8 with Gradle and Maven, see usage documentation.

Test

This repository also provides a S2I test framework, which launches tests to check functionality of a simple Java application built on top of the s2i-java image.

Users can choose between testing a Java test application with Gradle or Maven.

  • Gradle image

    $ cd s2i-java
    $ make test VERSION=1.8-gradle
    
  • Maven image

    $ cd s2i-java
    $ make test VERSION=1.8-maven
    
  • Gradle + Maven image

    $ cd s2i-all
    $ make test VERSION=1.8-all
    

Repository organization

  • <jdkVersion-(gradle|maven|all)>

    Dockerfile and scripts to build container images from.

  • hack/

    Folder containing scripts which are responsible for build and test actions performed by the Makefile.

s2i-java-1's People

Contributors

luiscoms avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.