Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-22575

Extract CDK's Docker registry from vagrant service-manager env

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 4.4.0.Final
    • 4.4.0.Final
    • cdk

      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:

      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
      
      

      We should store the docker registry with a https:// prefix, if the value is not a URL

              rob.stryker Rob Stryker (Inactive)
              fbricon@redhat.com Fred Bricon
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: