]
Jeff MAURY updated JBIDE-24495:
-------------------------------
Fix Version/s: 4.5.x
(was: 4.5.0.Final)
Provide the equivalent to "oc new-build" &&
"oc start-build" && "oc expose"
---------------------------------------------------------------------------
Key: JBIDE-24495
URL:
https://issues.jboss.org/browse/JBIDE-24495
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: openshift
Affects Versions: 4.4.4.Final
Reporter: Andre Dietisheim
Fix For: 4.5.x
[Helloworld
MSA|https://cdn.rawgit.com/redhat-helloworld-msa/helloworld-msa/master/re...] - the
reference examples for openshift - is using the command line client "oc" to
create the applications in OpenShift.
A typical approach is doing the following:
{code}
$ oc new-build --binary --name=hola -l app=hola
$ mvn package; oc start-build hola --from-dir=. --follow
$ oc new-app hola -l app=hola,hystrix.enabled=true
$ oc expose service hola
{code}
For people to be able to run those with Eclipse tooling people should be able to run the
equivalent in Eclipse.
The alternative approach, that's currently available in Eclipse is imbo less evident:
Users can currently build docker images locally and deploy them to OpenShift.
The tricky part though - for now - is that the CDK is not providing access to the docker
registry from the outside: the docker registry address is a private IP that's only
reachable within OpenShift. Users can get around this limitation by building docker images
using the docker daemon in OpenShift, which is publicly reachable. Once available in the
OpenShift docker daemon it can be pushed to the OpenShift docker registry.