-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdeploy.sh
executable file
·37 lines (24 loc) · 1019 Bytes
/
deploy.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#!/bin/bash
# deploy Strimzi
oc apply -f https://github.com/strimzi/strimzi-kafka-operator/releases/download/0.16.2/strimzi-cluster-operator-0.16.2.yaml
oc adm policy add-cluster-role-to-user cluster-admin system:serviceaccount:default:strimzi-cluster-operator
oc apply -f deployment/ccfd-kafka.yaml
oc wait kafka/ccfd --for=condition=Ready --timeout=300s
oc expose svc/ccfd-kafka-brokers
oc new-app python:3.6~https://github.com/ruivieira/ccfd-kafka-producer \
-e BROKER_URL=ccfd-kafka-brokers:9092 \
-e KAFKA_TOPIC=ccd
oc new-app ruivieira/jbpm-seldon-test-model
oc expose svc/jbpm-seldon-test-model
# build the service
sh build.sh
# build the camel router
mvn -f ../ccfd-fuse/pom.xml -P openshift
# after running build.sh
oc new-app ccd-service:1.0-SNAPSHOT \
-e SELDON_URL=http://jbpm-seldon-test-model-default.apps-crc.testing
oc expose svc/ccd-service
oc new-app ccd-fuse:1.0-SNAPSHOT \
-e BROKER_URL=ccfd-kafka-brokers:9092 \
-e KAFKA_TOPIC=ccd \
-e KIE_SERVER_URL=ccd-service:8090