Skip to main content
Redhat Developers  Logo
  • Products

    Featured

    • Red Hat Enterprise Linux
      Red Hat Enterprise Linux Icon
    • Red Hat OpenShift AI
      Red Hat OpenShift AI
    • Red Hat Enterprise Linux AI
      Linux icon inside of a brain
    • Image mode for Red Hat Enterprise Linux
      RHEL image mode
    • Red Hat OpenShift
      Openshift icon
    • Red Hat Ansible Automation Platform
      Ansible icon
    • Red Hat Developer Hub
      Developer Hub
    • View All Red Hat Products
    • Linux

      • Red Hat Enterprise Linux
      • Image mode for Red Hat Enterprise Linux
      • Red Hat Universal Base Images (UBI)
    • Java runtimes & frameworks

      • JBoss Enterprise Application Platform
      • Red Hat build of OpenJDK
    • Kubernetes

      • Red Hat OpenShift
      • Microsoft Azure Red Hat OpenShift
      • Red Hat OpenShift Virtualization
      • Red Hat OpenShift Lightspeed
    • Integration & App Connectivity

      • Red Hat Build of Apache Camel
      • Red Hat Service Interconnect
      • Red Hat Connectivity Link
    • AI/ML

      • Red Hat OpenShift AI
      • Red Hat Enterprise Linux AI
    • Automation

      • Red Hat Ansible Automation Platform
      • Red Hat Ansible Lightspeed
    • Developer tools

      • Red Hat Trusted Software Supply Chain
      • Podman Desktop
      • Red Hat OpenShift Dev Spaces
    • Developer Sandbox

      Developer Sandbox
      Try Red Hat products and technologies without setup or configuration fees for 30 days with this shared Openshift and Kubernetes cluster.
    • Try at no cost
  • Technologies

    Featured

    • AI/ML
      AI/ML Icon
    • Linux
      Linux Icon
    • Kubernetes
      Cloud icon
    • Automation
      Automation Icon showing arrows moving in a circle around a gear
    • View All Technologies
    • Programming Languages & Frameworks

      • Java
      • Python
      • JavaScript
    • System Design & Architecture

      • Red Hat architecture and design patterns
      • Microservices
      • Event-Driven Architecture
      • Databases
    • Developer Productivity

      • Developer productivity
      • Developer Tools
      • GitOps
    • Secure Development & Architectures

      • Security
      • Secure coding
    • Platform Engineering

      • DevOps
      • DevSecOps
      • Ansible automation for applications and services
    • Automated Data Processing

      • AI/ML
      • Data Science
      • Apache Kafka on Kubernetes
      • View All Technologies
    • Start exploring in the Developer Sandbox for free

      sandbox graphic
      Try Red Hat's products and technologies without setup or configuration.
    • Try at no cost
  • Learn

    Featured

    • Kubernetes & Cloud Native
      Openshift icon
    • Linux
      Rhel icon
    • Automation
      Ansible cloud icon
    • Java
      Java icon
    • AI/ML
      AI/ML Icon
    • View All Learning Resources

    E-Books

    • GitOps Cookbook
    • Podman in Action
    • Kubernetes Operators
    • The Path to GitOps
    • View All E-books

    Cheat Sheets

    • Linux Commands
    • Bash Commands
    • Git
    • systemd Commands
    • View All Cheat Sheets

    Documentation

    • API Catalog
    • Product Documentation
    • Legacy Documentation
    • Red Hat Learning

      Learning image
      Boost your technical skills to expert-level with the help of interactive lessons offered by various Red Hat Learning programs.
    • Explore Red Hat Learning
  • Developer Sandbox

    Developer Sandbox

    • Access Red Hat’s products and technologies without setup or configuration, and start developing quicker than ever before with our new, no-cost sandbox environments.
    • Explore Developer Sandbox

    Featured Developer Sandbox activities

    • Get started with your Developer Sandbox
    • OpenShift virtualization and application modernization using the Developer Sandbox
    • Explore all Developer Sandbox activities

    Ready to start developing apps?

    • Try at no cost
  • Blog
  • Events
  • Videos

A brief introduction to Apps and Stacks Container Images

July 17, 2024
Petr Hracek
Related topics:
CI/CDContainersDatabasesProgramming languages & frameworks
Related products:
Red Hat Enterprise LinuxRed Hat OpenShiftRed Hat OpenShift Container Platform

Share:

    This article aims to describe Apps and Stacks container images from two perspectives: user’s and developer's.

    Apps and Stacks container images can be divided into two groups: 

    • Source-to-Image (S2I) images 
    • No Source-to-Image (NoS2I) images

    Source-to-Image (S2I) is a toolkit and workflow for building reproducible container images from source code.

    S2I images are:

    • S2i-nodejs-container
    • S2i-php-container
    • S2i-ruby-container
    • S2i-python-container
    • Nginx-container
    • httpd-container

    NoS2I images are:

    • Postgresql-container
    • Mysql-container
    • mariadb-container
    • Redis-container
    • varnish-container

    Apps and Stacks container images support several operating systems like Fedora, CentOS Stream 8 (C8S), CentOS Stream 9 (C9S), Red Hat Enterprise Linux (RHEL) 8, and RHEL 9, and soon also RHEL 10. CentOS7 and RHEL 7 are not supported at all.

    All container sources are stored in the "sclorg" GitHub repository All supported versions per container are available in this GitHub repository.

    Fedora, C9S, and soon C10S container images are automatically built and pushed either by merging a pull request or by scheduled updates each Wednesday.

    RHEL container images are updated by each imported CVE, or by updated base image.

    Some of the RHEL images have a Universal Base Image (UBI) version. The UBI is designed and engineered to be the base layer for all of your containerized applications, middleware, and utilities. This base image is freely redistributable, but Red Hat only supports Red Hat technologies through subscriptions for Red Hat products. This image is maintained by Red Hat and updated regularly.

    User’s perspective

    To get a container for a specific operating system, pull the required version of the container from the respective container registry:

    • C8S and C9S images.

    • Fedora images.

    • RHEL images are available at GA from the Red Hat Container Registry: Certified Container Images - Red Hat Ecosystem Catalog.

    C8S and C9S images use tags, latest, c8s, or c9s. All these images are present in this container repository until they reach end of life (EOL).

    Each upstream repository contains instructions how to use the image either as a container-based image or in a Red Hat OpenShift 4 environment.

    E.g. postgresql-container.

    All supported versions are listed in the main README.md file, which is the same for all container versions.

    For example, if you want to use the PostgreSQL 16 version, you can find all the information here. The container-base usage, as well as OpenShift-base usage, is described here.

    To pull the PostgreSQL 16 C9S image from quay.io:

    $ podman pull quay.io/sclorg/postgresql-16-c9s

    Developer’s perspective

    If you are a developer who wants to participate, read the contribution guide, where you can find information about how to add a new container version and how to test a container.

    All containers use a test suite from the container-common-scripts repository. The test suite is written in bash and it is regularly distributed over a GitHub Action each week if there is any change.

    We plan to add a test suite written in PyTest later.

    Containers are tested every day with nightly builds or upon each pull request. The main testing platform is the Testing Farm.

    Example: postgresql-container from a developer's perspective.

    1. Clone the respective container repository:

      $ git clone 
      Cloning into 'postgresql-container'...
      remote: Enumerating objects: 6645, done.
      remote: Counting objects: 100% (1548/1548), done.
      remote: Compressing objects: 100% (324/324), done.
      remote: Total 6645 (delta 1287), reused 1331 (delta 1169), pack-reused 5097
      Receiving objects: 100% (6645/6645), 1.06 MiB | 8.28 MiB/s, done.
      Resolving deltas: 100% (3791/3791), done.
      $ cd postgresql-container
    2. Update or init the test suite:

      $ git submodule update --init
      Submodule 'common' (https://github.com/sclorg/container-common-scripts.git) registered for path 'common'
      Cloning into '/home/phracek/testing-approach/postgresql-container/common'...
      Submodule path 'common': checked out 'a9578162cd92ed8047e1936130813ed907470546' https://github.com/sclorg/postgresql-container
    3. Build and tag the respective container, for example, to build a container based on the RHEL8 host for version 16:

      $ make build TARGET=rhel8 VERSIONS=16
      $ make tag TARGET=rhel8 VERSIONS=16
    4. Make sure that all tests from the provided test suite passed.
      1. To run container based tests, use: 

        $ make test TARGET=rhel8 VERSIONS=16
      2. To run OpenShift 4 based, use:

        $ make test-openshift-4 TARGET=rhel8 VERSIONS=16

        Note: A prerequisite for running the OpenShift 4 tests is to have a connection to the OpenShift 4 cluster.

    5. If all tests are passed, you can file a pull request to the respective upstream repository. 

    Now you are a proud contributor to the Apps and Stack containers world. Congratulations!

    Related Posts

    • Building .NET Core container images using S2I

    • Verifying signatures of Red Hat container images

    • Build smaller container images using S2I

    • Creating and deploying a Java 8 runtime container image

    Recent Posts

    • Why Models-as-a-Service architecture is ideal for AI models

    • How to run MicroShift as a container using MINC

    • OpenShift 4.19 brings a unified console for developers and admins

    • 3 steps to secure network segmentation with Ansible and AWS

    • Integrate vLLM inference on macOS/iOS using OpenAI APIs

    What’s up next?

    In this activity, discover how you can go from initial app idea to prototype code in as little as five minutes. You'll scaffold a Quarkus application, build a container image locally using Podman Desktop, and then see how to install, run, and test the application in the Developer Sandbox from the command line.

    Start the activity
    Red Hat Developers logo LinkedIn YouTube Twitter Facebook

    Products

    • Red Hat Enterprise Linux
    • Red Hat OpenShift
    • Red Hat Ansible Automation Platform

    Build

    • Developer Sandbox
    • Developer Tools
    • Interactive Tutorials
    • API Catalog

    Quicklinks

    • Learning Resources
    • E-books
    • Cheat Sheets
    • Blog
    • Events
    • Newsletter

    Communicate

    • About us
    • Contact sales
    • Find a partner
    • Report a website issue
    • Site Status Dashboard
    • Report a security problem

    RED HAT DEVELOPER

    Build here. Go anywhere.

    We serve the builders. The problem solvers who create careers with code.

    Join us if you’re a developer, software engineer, web designer, front-end designer, UX designer, computer scientist, architect, tester, product manager, project manager or team lead.

    Sign me up

    Red Hat legal and privacy links

    • About Red Hat
    • Jobs
    • Events
    • Locations
    • Contact Red Hat
    • Red Hat Blog
    • Inclusion at Red Hat
    • Cool Stuff Store
    • Red Hat Summit

    Red Hat legal and privacy links

    • Privacy statement
    • Terms of use
    • All policies and guidelines
    • Digital accessibility

    Report a website issue