[jbosstools-issues] [JBoss JIRA] (JBIDE-22575) Extract CDK's Docker registry from vagrant service-manager env

Martin Malina (JIRA) issues at jboss.org
Tue Jun 28 04:48:00 EDT 2016


     [ https://issues.jboss.org/browse/JBIDE-22575?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Malina closed JBIDE-22575.
---------------------------------


So I finally verified this in devstudio 10.0.0.GA. We did see it work before, but to make sure that the url is really taken from service-manager a bit more was needed. So with the help of Marian and Radim, I changed the route in the vagrant box to return wtf.openshift.rhel-cdk.10.1.2.2.xip.io .
Then I started the server adapter in devstudio and it correctly showed this url in the newly created openshift connection.
Then I also wanted to make sure that this will work in case service-manager doesn't return anything. So I installed an old service-manager version 0.0.3 which doesn't show the registry url. And even with that, the created connection included the default url:
https://hub.openshift.rhel-cdk.10.1.2.2.xip.io 
There is one small catch though - the hardcoded string has a trailing space. That looks like a bug - logged here: JBIDE-22671 .

> Extract CDK's Docker registry from vagrant service-manager env
> --------------------------------------------------------------
>
>                 Key: JBIDE-22575
>                 URL: https://issues.jboss.org/browse/JBIDE-22575
>             Project: Tools (JBoss Tools)
>          Issue Type: Feature Request
>          Components: cdk
>    Affects Versions: 4.4.0.Final
>            Reporter: Fred Bricon
>            Assignee: Rob Stryker
>              Labels: respin-a
>             Fix For: 4.4.0.Final
>
>
> The docker registry url is currently hard coded when created a new OpenShift connection for the CDK (JBIDE-22441). 
> With https://github.com/projectatomic/vagrant-service-manager/issues/210 being fixed and the CDK 2.1 looming around the corner, it's now possible to get the DOCKER_REGISTRY value from the CDK:
> {code}
> vagrant service-manager env
> # docker env:
> # Set the following environment variables to enable access to the
> # docker daemon running inside of the vagrant virtual machine:
> export DOCKER_HOST=tcp://10.1.2.2:2376
> export DOCKER_CERT_PATH=/Users/fbricon/Dev/openshift/cdk.old/components/rhel/rhel-ose/.vagrant/machines/default/virtualbox/docker
> export DOCKER_TLS_VERIFY=1
> export DOCKER_API_VERSION=1.21
> # openshift env:
> # You can access the OpenShift console on: https://10.1.2.2:8443/console
> # To use OpenShift CLI, run: oc login https://10.1.2.2:8443
> export OPENSHIFT_URL=https://10.1.2.2:8443
> export OPENSHIFT_WEB_CONSOLE=https://10.1.2.2:8443/console
> export DOCKER_REGISTRY=hub.openshift.rhel-cdk.10.1.2.2.xip.io
> {code}
> We should store the docker registry with a https:// prefix, if the value is not a URL



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jbosstools-issues mailing list