Skip to content

Commit

Permalink
[JBPM-8549] - Onboarding readme knative instructions update (apache#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardozanini authored and mswiderski committed Jul 18, 2019
1 parent 1d2a3cb commit e0985d6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
4 changes: 2 additions & 2 deletions onboarding-example/hr/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,14 +76,14 @@ NOTE: Make sure that kogito S2I image builders are available to your OpenShift e
* Create new binary build and start it by uploading content of the current directory

```sh
oc new-build myproject/kaas-quarkus-centos-s2i --binary=true --name=hr-service-builder
oc new-build myproject/kogito-quarkus-centos-s2i --binary=true --name=hr-service-builder
oc start-build hr-service-builder --from-dir . --incremental=true
```

Once the build is completed create new build for runtime image

```sh
oc new-build --name hr-service --source-image=hr-service-builder --source-image-path=/home/kogito/bin:. --image-stream=kaas-quarkus-centos
oc new-build --name hr-service --source-image=hr-service-builder --source-image-path=/home/kogito/bin:. --image-stream=kogito-quarkus-centos
```

Next create application for the runtime image
Expand Down
13 changes: 10 additions & 3 deletions onboarding-example/onboarding/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,14 +60,14 @@ NOTE: Make sure that kogito S2I image builders are available to your OpenShift e
* Create new binary build and start it by uploading content of the current directory

```sh
oc new-build myproject/kaas-quarkus-centos-s2i --binary=true --name=onboarding-service-builder
oc new-build myproject/kogito-quarkus-centos-s2i --binary=true --name=onboarding-service-builder
oc start-build onboarding-service-builder --from-dir . --incremental=true
```

Once the build is completed create new build for runtime image

```sh
oc new-build --name onboarding-service --source-image=onboarding-service-builder --source-image-path=/home/kogito/bin:. --image-stream=kaas-quarkus-centos
oc new-build --name onboarding-service --source-image=onboarding-service-builder --source-image-path=/home/kogito/bin:. --image-stream=kogito-quarkus-centos
```

Next create application for the runtime image
Expand Down Expand Up @@ -107,5 +107,12 @@ service discovery can properly happen

```sh
oc policy add-role-to-group view system:serviceaccounts:default -n istio-system
oc policy add-role-to-group knative-serving-core system:serviceaccounts:default -n default
oc policy add-role-to-group knative-serving-core system:serviceaccounts:default -n default
```

If using [Knative Serving Operator](https://github.com/knative/serving-operator) on OpenShift 4.x, the permissions that need to be set are

```sh
oc adm policy add-role-to-user knative-serving-core system:serviceaccount:myproject:default -n default
oc adm policy add-role-to-user view system:serviceaccount:myproject:default -n istio-system
```
4 changes: 2 additions & 2 deletions onboarding-example/payroll/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ NOTE: Make sure that kogito S2I image builders are available to your OpenShift e
* Create new binary build and start it by uploading content of the current directory

```sh
oc new-build myproject/kaas-quarkus-centos-s2i --binary=true --name=payroll-service-builder
oc new-build myproject/kogito-quarkus-centos-s2i --binary=true --name=payroll-service-builder
oc start-build payroll-service-builder --from-dir . --incremental=true
```

Once the build is completed create new build for runtime image

```sh
oc new-build --name payroll-service --source-image=payroll-service-builder --source-image-path=/home/kogito/bin:. --image-stream=kaas-quarkus-centos
oc new-build --name payroll-service --source-image=payroll-service-builder --source-image-path=/home/kogito/bin:. --image-stream=kogito-quarkus-centos
```

Next create application for the runtime image
Expand Down

0 comments on commit e0985d6

Please sign in to comment.