rimolive / r-s2i-openshift

A S2i builder image to run R applications on top of OpenShift

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

R Docker images

This repository contains the source for building various versions of the R application as a reproducible Docker image using source-to-image.

For more information about contributing, see the Contribution Guidelines. For more information about concepts used in these docker images, see the Landing page.

Versions

R versions currently provided are:

CentOS versions currently supported are:

  • CentOS7

Installation

To build a R image, read the following instructions:

  • CentOS based image

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

    $ docker pull rimolive/r-36-centos7
    

    To build a R image from scratch run:

    $ git clone https://github.com/rimolive/r-s2i-openshift.git
    $ cd r-s2i-openshift
    $ make build
    

Usage

For information about usage of Dockerfile for R 3.4.3, see usage documentation.

For information about usage of Dockerfile for R 3.5.0, see usage documentation.

For information about usage of Dockerfile for R 3.6.0, see usage documentation.

Test

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

Users can choose between testing a Python test application based on a CentOS image.

  • CentOS based image

    $ cd r-s2i-openshift
    $ make test
    

Repository organization

  • <r-version>

    • Dockerfile

      CentOS based Dockerfile.

    • s2i/bin/

      This folder contains scripts that are run by S2I:

      • assemble

        Used to install the sources into the location where the application will be run and prepare the application for deployment (eg. installing dependencies, etc.)

      • run

        This script is responsible for running the application by using the application web server.

      • usage*

        This script prints the usage of this image.

    • test/

      This folder contains a S2I test framework with a simple server.

      • setup-test-app/

        Simple Gunicorn application used for testing purposes by the S2I test framework.

      • standalone-test-app/

        Simple standalone application used for testing purposes by the S2I test framework.

      • run

        Script that runs the S2I test framework.

About

A S2i builder image to run R applications on top of OpenShift

License:MIT License


Languages

Language:Shell 52.4%Language:Roff 34.6%Language:Dockerfile 9.2%Language:Makefile 2.7%Language:HTML 1.0%