forked from openshift-labs/devops-labs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ee5885d
commit 5ad0d81
Showing
1 changed file
with
248 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,248 @@ | ||
apiVersion: v1 | ||
kind: Template | ||
metadata: | ||
annotations: | ||
description: CoolStore Microservices Application Template | ||
iconClass: icon-java | ||
tags: microservice,jboss,spring | ||
name: coolstore | ||
objects: | ||
- apiVersion: v1 | ||
groupNames: null | ||
kind: RoleBinding | ||
metadata: | ||
name: default_edit | ||
roleRef: | ||
name: view | ||
subjects: | ||
- kind: ServiceAccount | ||
name: default | ||
# UI | ||
- apiVersion: v1 | ||
kind: ImageStream | ||
metadata: | ||
name: web-ui | ||
labels: | ||
application: coolstore | ||
component: web-ui | ||
spec: | ||
tags: | ||
- name: latest | ||
- apiVersion: v1 | ||
kind: BuildConfig | ||
metadata: | ||
name: web-ui | ||
labels: | ||
app: web-ui | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: web-ui:${BUILD_TAG} | ||
source: | ||
contextDir: web-nodejs | ||
git: | ||
ref: ${GIT_REF} | ||
uri: ${GIT_URI} | ||
type: Git | ||
strategy: | ||
sourceStrategy: | ||
from: | ||
kind: ImageStreamTag | ||
name: nodejs:4 | ||
namespace: openshift | ||
type: Source | ||
triggers: | ||
- imageChange: {} | ||
type: ImageChange | ||
- type: ConfigChange | ||
# Coolstore Gateway | ||
- apiVersion: v1 | ||
kind: ImageStream | ||
metadata: | ||
name: coolstore-gw | ||
labels: | ||
application: coolstore | ||
component: coolstore-gw | ||
spec: | ||
tags: | ||
- name: latest | ||
- apiVersion: v1 | ||
kind: BuildConfig | ||
metadata: | ||
name: coolstore-gw | ||
labels: | ||
application: coolstore | ||
component: coolstore-gw | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: coolstore-gw:${BUILD_TAG} | ||
source: | ||
contextDir: gateway-vertx | ||
git: | ||
ref: ${GIT_REF} | ||
uri: ${GIT_URI} | ||
type: Git | ||
strategy: | ||
sourceStrategy: | ||
env: | ||
- name: MAVEN_MIRROR_URL | ||
value: ${MAVEN_MIRROR_URL} | ||
from: | ||
kind: ImageStreamTag | ||
name: redhat-openjdk18-openshift:1.1 | ||
namespace: openshift | ||
type: Source | ||
triggers: | ||
- type: ConfigChange | ||
- imageChange: {} | ||
type: ImageChange | ||
# Catalog Service | ||
- apiVersion: v1 | ||
kind: ImageStream | ||
metadata: | ||
name: catalog | ||
labels: | ||
application: coolstore | ||
component: catalog | ||
spec: | ||
tags: | ||
- name: latest | ||
- apiVersion: v1 | ||
kind: BuildConfig | ||
metadata: | ||
name: catalog | ||
labels: | ||
application: coolstore | ||
component: catalog | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: catalog:${BUILD_TAG} | ||
source: | ||
contextDir: catalog-spring-boot | ||
git: | ||
ref: ${GIT_REF} | ||
uri: ${GIT_URI} | ||
type: Git | ||
strategy: | ||
sourceStrategy: | ||
env: | ||
- name: MAVEN_MIRROR_URL | ||
value: ${MAVEN_MIRROR_URL} | ||
from: | ||
kind: ImageStreamTag | ||
name: redhat-openjdk18-openshift:1.1 | ||
namespace: openshift | ||
type: Source | ||
triggers: | ||
- type: ConfigChange | ||
- imageChange: {} | ||
type: ImageChange | ||
# Cart Service | ||
- apiVersion: v1 | ||
kind: ImageStream | ||
metadata: | ||
name: cart | ||
labels: | ||
application: coolstore | ||
component: cart | ||
spec: | ||
tags: | ||
- name: latest | ||
- apiVersion: v1 | ||
kind: BuildConfig | ||
metadata: | ||
name: cart | ||
labels: | ||
application: coolstore | ||
component: cart | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: cart:${BUILD_TAG} | ||
source: | ||
contextDir: cart-spring-boot | ||
git: | ||
ref: ${GIT_REF} | ||
uri: ${GIT_URI} | ||
type: Git | ||
strategy: | ||
sourceStrategy: | ||
env: | ||
- name: MAVEN_MIRROR_URL | ||
value: ${MAVEN_MIRROR_URL} | ||
from: | ||
kind: ImageStreamTag | ||
name: redhat-openjdk18-openshift:1.1 | ||
namespace: openshift | ||
type: Source | ||
triggers: | ||
- type: ConfigChange | ||
- imageChange: {} | ||
type: ImageChange | ||
# Inventory Service | ||
- apiVersion: v1 | ||
kind: ImageStream | ||
metadata: | ||
name: inventory | ||
labels: | ||
application: coolstore | ||
component: inventory | ||
spec: | ||
tags: | ||
- name: latest | ||
- apiVersion: v1 | ||
kind: BuildConfig | ||
metadata: | ||
name: inventory | ||
labels: | ||
application: coolstore | ||
component: inventory | ||
spec: | ||
output: | ||
to: | ||
kind: ImageStreamTag | ||
name: inventory:${BUILD_TAG} | ||
source: | ||
contextDir: inventory-wildfly-swarm | ||
git: | ||
ref: ${GIT_REF} | ||
uri: ${GIT_URI} | ||
type: Git | ||
strategy: | ||
sourceStrategy: | ||
env: | ||
- name: MAVEN_MIRROR_URL | ||
value: ${MAVEN_MIRROR_URL} | ||
from: | ||
kind: ImageStreamTag | ||
name: redhat-openjdk18-openshift:1.1 | ||
namespace: openshift | ||
type: Source | ||
triggers: | ||
- type: ConfigChange | ||
- imageChange: {} | ||
type: ImageChange | ||
parameters: | ||
- description: Git source URI for application | ||
displayName: Git source repository | ||
name: GIT_URI | ||
required: true | ||
value: https://github.com/openshift-labs/devops-labs.git | ||
- displayName: Git branch/tag reference | ||
name: GIT_REF | ||
required: true | ||
value: master | ||
- description: Maven mirror url. If nexus is deployed locally, use nexus url (e.g. http://nexus.ci:8081/content/groups/public/) | ||
displayName: Maven mirror url | ||
name: MAVEN_MIRROR_URL | ||
- displayName: Build Tag | ||
description: Built tag to push the built images to | ||
name: BUILD_TAG | ||
required: true | ||
value: latest |