GithubHelp home page GithubHelp logo

glamperi / application-templates Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jboss-openshift/application-templates

0.0 2.0 0.0 1.76 MB

OpenShift application templates supporting JBoss Middleware based applications.

License: Apache License 2.0

Python 100.00%

application-templates's Introduction

#Application Templates This project contains OpenShift v3 application templates which support applications based on JBoss Middleware products.

##Structure The templates in this folder are organized by JBoss Middleware product. Each template is configured with the following basic parameters:

  • APPLICATION_NAME: the name of the application. This is also used as the name of the docker image created by the build.
  • SOURCE_REPOSITORY_URL: the URI to the git project used for S2I templates.
  • SOURCE_REPOSITORY_REF: the git reference to use when pulling the project.
  • CONTEXT_DIR: the relative directory within the project to build (if other than the root directory)
  • APPLICATION_DOMAIN: the hostname to register for the route (for templates exposing services publicly, through the router). If unset, the default, the hostnames will be of the form: <service-name>.<project-name>.<default-domain-suffix>, e.g. eap-app.myproject.v3.openshift.com

In addition to these basic parameters, templates utilizing databases will have the following:

  • DB_USER: The name of the database user.
  • DB_PASSWORD: The password for the database user.
  • DB_DATABASE: The database/tablespace to connect to.
  • DB_JNDI: The JNDI name to use for datasource definitions (e.g. eap: java:jdbc/mydb or jws: jdbc/mydb)

##Common Image Repositories The jboss-image-streams.json file contains ImageStream definitions for all JBoss Middleware products. This will need to be installed in the common openshift namespace (oc create -f jboss-images-streams.json -n openshift) before using any of the templates in these folders. You will also need to install (into the openshift namespace) the database image streams supplied by OpenShift to use any of the templates that integrate with MySQL, PostgreSQL or MongoDB.

##HTTPS configuration The majority of templates contain configuration that requires the creation of resources within your project to support HTTPS, specifically a service account and a secret that can be included into the pod as a volume. The secrets directory contains a number of examples that can be installed into your project to allow you to test the A-MQ, EAP and JWS templates, you should replace the contents of these with data that is more appropriate for your deployments.

To install the service accounts and secrets into your project:

$ oc create -n myproject -f secrets

The following templates can be used without creating a service account or a secret: eap/eap6-basic-s2i.json, webserver/jws-tomcat7-basic-s2i.json and webserver/jws-tomcat8-basic-s2i.json.

##Example The easiest way to use the templates is to install them in your project, then use the Create+ button in the OpenShift console to create your application. The console will prompt you for the values for all of the parameters used by the template. To set this up for a particular template:

$ oc create -n openshift -f jboss-image-streams.json
$ oc create -n myproject -f webserver/jws-tomcat7-basic-s2i.json

After executing the above, you should be able to see the template after pressing Create+ in your project.

Or, if you prefer the command line:

$ oc create -n openshift -f jboss-image-streams.json
$ oc process -n yourproject -f eap/eap6-basic-s2i.json -v APPLICATION_NAME=helloworld,SOURCE_REPOSITORY_URL=https://github.com/jboss-developer/jboss-eap-quickstarts,SOURCE_REPOSITORY_REF=6.4.x,CONTEXT_DIR=helloworld | oc create -n yourproject -f -

You may also install the templates into the openshift namespace in order to make them available to all users:

$ oc create -n openshift -f amq -f eap -f webserver

application-templates's People

Contributors

0xmichalis avatar bparees avatar douglaspalmer avatar errantepiphany avatar jcantrill avatar jmtd avatar jwendell avatar kyguy avatar luksa avatar mnagy avatar rcernich avatar rnetuka avatar sdodson avatar wdecoste avatar

Watchers

 avatar  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.