[jbosstools-issues] [JBoss JIRA] (JBIDE-24495) Provide the equivalent to "oc new-build" && "oc start-build" && "oc expose"

Andre Dietisheim (JIRA) issues at jboss.org
Tue May 23 04:38:00 EDT 2017


Andre Dietisheim created JBIDE-24495:
----------------------------------------

             Summary: 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


[Helloworld MSA|https://cdn.rawgit.com/redhat-helloworld-msa/helloworld-msa/master/readme.html] - 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.




--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jbosstools-issues mailing list