This repository contains Dockerfiles which serve as base images for various OpenShift images.
s2i image versions currently provided are:
RHEL versions currently supported are:
- RHEL7
CentOS versions currently supported are:
- CentOS7
For more information about contributing, see the Contribution Guidelines. For more information about concepts used in these docker images, see the Landing page.
To build a S2I base image, choose either the CentOS or RHEL based image:
-
RHEL based image
This image is available in Red Hat Container Registry. To download it run:
$ docker pull registry.access.redhat.com/rhscl/s2i-base-rhel7
Or
$ docker pull registry.access.redhat.com/rhscl/s2i-core-rhel7
To build a RHEL based S2I base image, you need to run the build on a properly subscribed RHEL machine.
$ git clone --recursive https://github.com/sclorg/s2i-base-container.git $ cd s2i-base-container $ git submodule update --init $ make build TARGET=rhel7 VERSIONS=base
-
CentOS based image
This image is available on DockerHub. To download it run:
$ docker pull centos/s2i-base-centos7
Or
$ docker pull centos/s2i-core-centos7
To build a S2I base image from scratch run:
$ git clone --recursive https://github.com/sclorg/s2i-base-container.git $ cd s2i-base-container $ git submodule update --init $ make build TARGET=centos7 VERSIONS=base
Notice: By omitting the VERSIONS
parameter, the build/test action will be performed
on all provided versions of S2I base image.