[jbosstools-issues] [JBoss JIRA] (JBIDE-23152) NPE when deploying image with ENV with no value

Marián Labuda (JIRA) issues at jboss.org
Fri Oct 14 08:53:00 EDT 2016


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

Marián Labuda closed JBIDE-23152.
---------------------------------



Verified in DevStudio 10.2.0.AM2 build AM2-v20161014-0456-B6202.

> NPE when deploying image with ENV with no value
> -----------------------------------------------
>
>                 Key: JBIDE-23152
>                 URL: https://issues.jboss.org/browse/JBIDE-23152
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.4.1.Final
>            Reporter: Jeff MAURY
>            Assignee: Dmitrii Bocharov
>              Labels: openshift, openshift_v3
>             Fix For: 4.4.2.AM2
>
>         Attachments: Dockerfile
>
>
> EXEC: first deploy jboss-eap64-openshift builder image
> ASSERT: wait until deployment is finished
> EXEC: delete the deployment
> EXEC: deploy the image that has been produced (172.30.159.75:5000/ddd/jboss-eap64-openshift:latest if my project was ddd)
> ASSERT: error dialog is shown NPE is generated because image has one or several env variables with no value (XXXX=)
> As this first scenario seems to be valid only if you're working with CDK2.2 and no proxy set, here is a scenario valid for all versions of CDK:
> ASSERT: have a Docker file with an empty ENV value. You can use https://github.com/redhat-helloworld-msa/aloha and edit the Docker file and add the following statement:
> {quote}ENV NOVALUE ""{quote}
> EXEC: build the Docker image on the CDK Docker connection. If you use aloha (https://github.com/redhat-helloworld-msa/aloha), then you must beforehand run the "mvn package" command to get binary artifacts being produced. Select the Dockerfile, click *_Run As -> Docker Image Build_*, select the CDK Docker connection and give *_msa/aloha:1_* as image name
> ASSERT: your Docker image has been generated
> EXEC: from the Openshift explorer, select the *_Deploy Docker Image_*, then select the CDK Docker Connection, then click on *_Browse_* and select the *_msa/aloha:1_* image, then click on the Next button
> ASSERT: you should get an error



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



More information about the jbosstools-issues mailing list