-
Bug
-
Resolution: Done
-
Major
-
7.0.0.GA
-
OpenShift 3.7, Red Hat Decision Manager 7.0.0.GA
-
-
-
-
-
-
CR2
-
2018 Week 27-29
Decision Central on OpenShift does not export the HTTP Git port (9418) and SSH Git port(8001) and services. This makes it impossible to, for example, clone the Decision Central Git repo's. Developers cannot clone the Git repo's onto their development machines, CI/CD environments (e.g. Jenkins) cannot clone the repo's to do builds, etc.
Currently I resolve this by patching the service and exposing a route:
oc patch svc/rhdm7-cicd-rhdmcentr --type='json' -p="[{'op': 'add', 'path': '/spec/ports/0/name', 'value': 'http'}]" oc patch svc/rhdm7-cicd-rhdmcentr -p '{"spec":{"ports":[{"name":"git","port":9418,"protocol":"TCP", "targetPort":9418}]}}' oc patch route/rhdm7-cicd-rhdmcentr -p '{"spec":{"port":{"targetPort":"http"}}}'
And I think I also need to also set the following Java system props using JAVA_OPTS_APPEND:
- org.uberfire.nio.git.daemon.host
- org.uberfire.nio.git.ssh.host
and point them to "0.0.0.0", as by default they bind to localhost.