Skip to content

Openshift v3 Demo - S2i template of nodejs app integrating with datagrid xpaas image

Notifications You must be signed in to change notification settings

wohshon/nodejs-datagrid

Repository files navigation

nodejs-jdg

Pre-requisites

Installation of template

The template of this demo is under openshiftv3-templates

As a cluster-admin, on the CLI, run the following command to install template:

oc create -f /path/to/nodejs-datagrid65-template.json -n openshift

Usage

Web Console

Template will be installed under the 'Instant Apps' as nodejs-datagrid65-example, (You may need to search for it or click on the 'see all' link to view the template)

CLI

As a project adminstrator, run this

oc new-app nodejs-datagrid65-example

Clustered DG nodes

To test clustering feature of DG nodes by increasing the number of replicas, you need to ensure the following commands are run by the project admin before attempting to scale up the nodes

oc policy add-role-to-user view system:serviceaccount:$(oc project -q):default -n $(oc project -q)

oc policy add-role-to-user view system:serviceaccount:$(oc project -q):eap-service-account -n $(oc project -q)

Parameters

Some of the parameters used in the template, the rest are self-explanatory

  • APPLICATION_NAME

    Name of application, default to demo

  • SOURCE_REPOSITORY_URL

    git repo of nodejs sample app

  • SOURCE_REPOSITORY_REF

    branch name, not required for demo

  • CONTEXT_DIR

    not required for demo

  • APPLICATION_DOMAIN

application domain for node js app

  • DG_HOSTNAME_HTTP

application domain for jdg nodes. for external text via rest api

About

Openshift v3 Demo - S2i template of nodejs app integrating with datagrid xpaas image

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published