Skip to content

cloudfirst-dev/redhat-image-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

S2I Image Consumption

This repository will show different ways to consume the provided RHEL and UBI images without using the S2I functionality. It will demonstrate how to leverage the benefits provided with the entrypoint and starter scripts and configure things such as user creation, and necessary permissions when running in a non-root container such as OpenShift.

Example Structure

- language directory (ex. java)
-- app (source code of sample)
-- Dockerfile.rhel7 (dockerfile consuming RHEL7 base image)
-- Dockerfile.ubi (dockerfile consuming UBI base image)

Running Examples

  1. Change into the language of choice ex. cd java
  2. Build the docker image with either docker or buildah the examples below show using the UBI image
    1. docker build -t imagename -f Dockerfile.ubi .
    2. buildah

Examples

This will show using a multistage dockerfile that will build a maven application and place it into a runtime container leveraging the benefits of the Java S2I image. One thing that is noteworthy is setting up the garbage collection and min and max heap sizes appropriately based on the resource requests and limits defined for the pod.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published