Skip to main contentMerative SPM on Kubernetes

Building base images

Some of the images built in the next section, Building the Docker® images require authentication with the Red Hat Container Registry.

If you do not have an active Red Hat Subscription you will need to build these images from source instead. If you do have an appropriate subscription, you do not need to build from source, please continue to Building the Docker® image.

Access to the Red Hat Container Registry is also available through the Red Hat Developer Subscription.

If you do need to build from source, you can do so with the following steps.

If you are building these images on macOS with Docker Desktop for Mac version 3.2 or later, an extra environment variable must be set to disable the BuildKit feature, as it prevents successful builds of the S2I images below:

export DOCKER_BUILDKIT=0

IBM® SDK, Java™ Technology Edition

IBM® SDK, Java™ Technology Edition does not build on the Apple M1 architecture. If you need to build on Apple M1 architecture for local development you are required have an active Red Hat Subscriptionto use the Red Hat Container Registry.

  • Clone repository and change into the working directory:

    git clone https://github.com/ibmruntimes/ci.docker.git
    cd ci.docker/ibmjava/tests
  • Build image:

    ./build.sh ibm/ibmjava8-sdk-ubi8-minimal:8.0.8.30 ../8/sdk/ubi-min

S2I Core (required for Apache HTTP Server)

  • Install prerequisite packages:

    • Ubuntu/Debian: sudo apt-get install go-md2man make

    • CentOS/RHEL: sudo yum install go-md2man make

    • MacOS: brew install bash coreutils go-md2man

      • Reopen the terminal after installing these packages

      • Update the PATH variable to use the GNU version of commands that also exist on MacOS:

        export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"
  • Clone repository and change into the working directory:

    git clone --recursive https://github.com/sclorg/s2i-base-container.git
    cd s2i-base-container
  • Build image:

    make build TARGET=rhel8 VERSIONS=core

Apache HTTP Server

  • Clone repository and change into the working directory:

    git clone --recursive https://github.com/sclorg/httpd-container.git
    cd httpd-container
  • Build image:

    make tag TARGET=rhel8 VERSIONS=2.4