OpenShift Build and Deploy a JEE Application with S2I: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 22: Line 22:
* a route
* a route
* a service
* a service
==Add Source Repository Secrets==
oc secrets new=basicauth <''secret-name''> --username=... --password=...
oc secrets link builder <''secret-name''>
oc set build-secret --source bc/<''build-config-name''> <''secret-name''>

Revision as of 08:06, 25 November 2017

Internal

Overview

Process

Create the Application

oc new-app <name> \
 --param APPLICATION_NAME=<application-name> \
 --param SOURCE_REPOSITORY_URL=<git-url> \ 
 --param SOURCE_REPOSITORY_REF=master \
 --param CONTEXT_DIR=/

This creates:

  • a build configuration
  • an image stream
  • a deployment configuration
  • a route
  • a service

Add Source Repository Secrets

oc secrets new=basicauth <secret-name> --username=... --password=...
oc secrets link builder <secret-name>
oc set build-secret --source bc/<build-config-name> <secret-name>