[jbosstools-issues] [JBoss JIRA] (JBIDE-24501) Deploy Docker Image wizard: NPE when trying to deploy image previously pushed to docker registry

Andre Dietisheim (JIRA) issues at jboss.org
Tue May 23 06:12:01 EDT 2017


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

Andre Dietisheim updated JBIDE-24501:
-------------------------------------
    Steps to Reproduce: 
# ASSERT: have the CDK with the registry that's not publicly reachable
# ASSERT: have a project with a docker file in your workspace (ex. clone git at github.com:redhat-helloworld-msa/hola.git)
# ASSERT: have a connection to the docker daemon in the CDK3
# EXEC: in package explorer: select your Dockerfile and pick Run As > Docker Image Build. Provide some image name and version, pick *Docker Connection* to the docker daemon in the CDK
# EXEC: once the image is built, go to "Docker Explorer", select the Docker image that you built and select "Deploy to OpenShift..."
# EXEC: In deploy docker image wizard: check "Push Image to Registry" and finish the wizard
# ASSERT: once the push is finished, the freshly pushed image should show up in the Docker explorer
!image-2017-05-23-12-00-51-733.png! 
# EXEC: in "Docker Explorer": select this image and pick "Deploy to OpenShift..."
# ASSERT: "Deploy Docker Image" wizard shows up, having "Image Name" set to your Docker image with the docker registry prefix
 !image-2017-05-23-12-07-14-028.png! 
# EXEC: hit "Next"

Result:
The image name lookup fails, and 2 error dialogs show up: One that tells you that the lookup failed and one that tells you about an NPE that happened:
 !image-2017-05-23-12-10-06-694.png! 
In the Eclipse log you'll find the following:
{code}
java.lang.NullPointerException
	at org.jboss.tools.openshift.internal.ui.wizard.deployimage.DockerConfigMetaData.env(DockerConfigMetaData.java:69)
	at org.jboss.tools.openshift.internal.ui.wizard.deployimage.DeployImageWizardModel.initializeContainerInfo(DeployImageWizardModel.java:356)
	at org.jboss.tools.openshift.internal.ui.wizard.deployimage.DeployImagePage$1ImageValidatorJob.run(DeployImagePage.java:154)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:56)
{code}

  was:
# ASSERT: have the CDK with the registry that's not publicly reachable
# ASSERT: have a project with a docker file in your workspace (ex. clone git at github.com:redhat-helloworld-msa/hola.git)
# ASSERT: have a connection to the docker daemon in the CDK3
# EXEC: in package explorer: select your Dockerfile and pick Run As > Docker Image Build. Provide some image name and version, pick *Docker Connection* to the docker daemon in the CDK
# EXEC: once the image is built, go to "Docker Explorer", select the Docker image that you built and select "Deploy to OpenShift..."
# EXEC: In deploy docker image wizard: check "Push Image to Registry" and finish the wizard
# ASSERT: once the push is finished, the freshly pushed image should show up in the Docker explorer
!image-2017-05-23-12-00-51-733.png! 
# EXEC: in "Docker Explorer": select this image and pick "Deploy to OpenShift..."
# ASSERT: "Deploy Docker Image" wizard shows up, having "Image Name" set to your Docker image with the docker registry prefix
 !image-2017-05-23-12-07-14-028.png! 
# EXEC: hit "Next"

Result:
The image name lookup fails, and 2 error dialogs show up: One that tells you that the lookup failed and one that tells you about an NPE that happened:
 !image-2017-05-23-12-10-06-694.png! 



> Deploy Docker Image wizard: NPE when trying to deploy image previously pushed to docker registry
> ------------------------------------------------------------------------------------------------
>
>                 Key: JBIDE-24501
>                 URL: https://issues.jboss.org/browse/JBIDE-24501
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.4.4.Final
>            Reporter: Andre Dietisheim
>         Attachments: image-2017-05-23-12-00-51-733.png, image-2017-05-23-12-07-14-028.png, image-2017-05-23-12-10-06-694.png
>
>




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


More information about the jbosstools-issues mailing list