Skip to content

ajdevries/sti-gradle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Gradle - CentOS Docker image

This repository contains the source for building gradle applications as a reproducible Docker image using source-to-image. The resulting image can be run using Docker.

Versions

CentOS versions currently provided are:

  • CentOS7

Usage

To build a simple jee application using standalone S2I and then run the resulting image with Docker execute:

$ s2i build git://github.com/ajdevries/gradle-sparkjava-sample openshift/wildfly-81-centos7 wildflytest
$ docker run -p 8080:8080 wildflytest

Accessing the application:

$ curl 127.0.0.1:8080

Test

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

  • CentOS based image

    $ cd sti-gradle
    $ make test
    

Environment variables

To set environment variables, you can place them as a key value pair into a .sti/environment file inside your source code repository.

  • JAR_FILE

    Name of the jar-file that needs to run (default: openshift.jar)

About

Gradle Docker Image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published