Skip to content
forked from oasp/s2i

Project for building and running Open Application Standard Platform (OASP) applications on OpenShift. This repository is totally based on the https://github.com/mickuehl/s2i-oasp repository, implemented by Michael Kuehl from RedHat.

Notifications You must be signed in to change notification settings

Jorge-Dacal/s2i

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Application Standard Platform Source-To-Image (S2I)

This project provides OpenShift builder images for each of the Open Application Standard Platform (OASP) components.

Overview

To build the OASP components, OpenShift's Source-to-Image (S2I) functionallity is used.

Currently there are builder images for

  • OASP4J (Java)
  • OASP4JS (JavaScript)

In order to get started, additional templates to deploy the OASP 'My Thai Star' reference application are provided.

Previous setup

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

  1. Download the executable oc.exe from here and paste it somewhere in your machine.

  2. Once extracted and pasted, you can navigate to oc.exe's directory or add it to your PATH and execute oc cluster up.

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 Standar Platform'

Now add the builder image configuration and start their build.

$ oc create -f https://raw.githubusercontent.com/oasp/s2i/master/s2i/angular/s2i-devonfw-java-imagestream.json --namespace=devonfw
$ oc create -f https://raw.githubusercontent.com/oasp/s2i/master/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:

Build All

Use script build.sh 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/build.sh

Further documentation

Links & References

This is a list of useful articels etc I found while creating the templates.

About

Project for building and running Open Application Standard Platform (OASP) applications on OpenShift. This repository is totally based on the https://github.com/mickuehl/s2i-oasp repository, implemented by Michael Kuehl from RedHat.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 61.0%
  • Dockerfile 35.7%
  • sed 2.1%
  • Other 1.2%