Skip to content

dsf okd s2i

Sandesh, Pallapati Immanuel Prabhu edited this page Nov 4, 2021 · 4 revisions

s2i devonfw

This are the s2i source and templates to build an s2i images. It provides OpenShift builder images for components of the devonfw (at this moment only for angular and java).

This work is totally based on the implementation of Michael Kuehl from RedHat for Oasp s2i.

All this information is used as a part of the initial setup for openshift.

Previous setup

In order to build all of this, it will be necessary, first, to have a running OpenShift cluster. How to install it here.

Usage

Before using the builder images, add them to the OpenShift cluster.

Deploy the Source-2-Image builder images

First, create a dedicated devonfw project as admin.

$ oc new-project devonfw --display-name='devonfw' --description='devonfw Application Standard Platform'

Now add the builder image configuration and start their build.

oc create -f https://raw.githubusercontent.com/devonfw/devonfw-shop-floor/master/dsf4openshift/openshift-devonfw-deployment/s2i/java/s2i-devonfw-java-imagestream.json --namespace=devonfw
oc create -f https://raw.githubusercontent.com/devonfw/devonfw-shop-floor/master/dsf4openshift/openshift-devonfw-deployment/s2i/angular/s2i-devonfw-angular-imagestream.json --namespace=devonfw
oc start-build s2i-devonfw-java --namespace=devonfw
oc start-build s2i-devonfw-angular --namespace=devonfw

Make sure other projects can access the builder images:

oc policy add-role-to-group system:image-puller system:authenticated --namespace=devonfw

That’s all!

Deploy devonfw templates

Now, it’s time to create devonfw templates to use this s2i and add it to the browse catalog. More information here.

Build All

Use this script to automatically install and build all image streams. The script also creates templates devonfw-angular and devonfw-java inside the project 'openshift' to be used by everyone.

  1. Open a bash shell as Administrator

  2. Execute shell file:

$ /PATH/TO/BUILD/FILE/initial-setup.sh

More information about what this script does here.

This is a list of useful articles, etc, that I found while creating the templates.

Clone this wiki locally