Giter Club home page Giter Club logo

s2i's Introduction

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.

s2i's People

Contributors

jorge-dacal avatar cbeldacap avatar sjimenez77 avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.