[jbosstools-issues] [JBoss JIRA] (JBIDE-25700) Hot deploy of Spring Boot on OpenShift is not working with OpenShift Online

Andre Dietisheim (JIRA) issues at jboss.org
Thu Mar 15 05:23:01 EDT 2018


    [ https://issues.jboss.org/browse/JBIDE-25700?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13546153#comment-13546153 ] 

Andre Dietisheim edited comment on JBIDE-25700 at 3/15/18 5:22 AM:
-------------------------------------------------------------------

[~dbokde] manual docker build of the jboss image fails for me (I'm on a mac):
{code}
Step 24/28 : RUN mkdir -p /deployments/data  && chmod -R "g+rwX" /deployments  && chown -R jboss:root /deployments  && chmod -R "g+rwX" /home/jboss  && chown -R jboss:root /home/jboss  && chmod 664 /etc/passwd
 ---> Running in c96b04bb570c
chmod: cannot access '/home/jboss': No such file or directory
{code}
The very same error occurrs when running via fish-pepper:
{code}
    chmod: cannot access '/home/jboss': No such file or directory
++++++++ ERROR +++++++++++
The command '/bin/sh -c mkdir -p /deployments/data  && chmod -R "g+rwX" /deployments  && chown -R jboss:root /deployments  && chmod -R "g+rwX" /home/jboss  && chown -R jboss:root /home/jboss  && chmod 664 /etc/passwd' returned a non-zero code: 1
    rhel --> fabric8/s2i-java-rhel:2.1.0
    Step 1/28 : FROM jboss/openjdk18-rhel7:1.1-7
{code}
How can I fix this?


was (Author: adietish):
[~dbokde] manual docker build of the jboss image fails for me (I'm on a mac):
{code}
Step 24/28 : RUN mkdir -p /deployments/data  && chmod -R "g+rwX" /deployments  && chown -R jboss:root /deployments  && chmod -R "g+rwX" /home/jboss  && chown -R jboss:root /home/jboss  && chmod 664 /etc/passwd
 ---> Running in c96b04bb570c
chmod: cannot access '/home/jboss': No such file or directory
{code}
How can I fix this?

> Hot deploy of Spring Boot on OpenShift is not working with OpenShift Online
> ---------------------------------------------------------------------------
>
>                 Key: JBIDE-25700
>                 URL: https://issues.jboss.org/browse/JBIDE-25700
>             Project: Tools (JBoss Tools)
>          Issue Type: Bug
>          Components: openshift
>    Affects Versions: 4.5.2.Final
>            Reporter: Aurélien Pupier
>            Assignee: Andre Dietisheim
>            Priority: Critical
>              Labels: online, springboot
>             Fix For: 4.5.3.AM3
>
>
> neither with open.paas.redhat.com
> so only when using the CDK.
> it seems to be due to the fact that the user in the pod are not the same.
> Jeff said:
> {quote}
> For SpringBoot deployments, the application file is called a fat jar and it placed in the /deployments folder (images are upstream fabric8/s2i-java or imagestream redhat-openjdk18-openshift). In order to get live update the file is then unzipped to the /deployments folder leaded to new sub folders BOOT-INF and META-INF
> The user permissions on those folders are the following:
> /deployments: writable by user jboss and group root
> /deployments/BOOT-INF: writable by user jboss readable only by group root
> /deployments/META-INF: writable by user jboss readable only by group root
> The rsync process with create some sub folders under /deployments/BOOT-INF. The problem that we have is that the user that is assigned for the rsync operation (or when you open a terminal in the OpenShift console) is not jboss (as opposed to Minishift/CDK) and thus we have permissions errors during the rsync operation.
> {quote}



--
This message was sent by Atlassian JIRA
(v7.5.0#75005)



More information about the jbosstools-issues mailing list