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.
CentOS versions currently provided are:
- CentOS7
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
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
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
)