jboss-dockerfiles / business-central

MIT License
44 stars 65 forks source link

Non-Root User not working in Openshift #26

Closed ckvtvm-arch closed 4 years ago

ckvtvm-arch commented 4 years ago

Changed the JBoss user to a non-root user in docker file and build the image, but have permission issues in openshift post image deployment - permission denied for server.log.

Please advise on any solutions.

mbiarnes commented 4 years ago

Hi, Btw in the Note it says:

Can you please send your questions to drools-usage@gmail.com or drools-setup@gmail.com - I think here is more people that may help you. Thank you.

ckvtvm-arch commented 4 years ago

It worked once in Openshift , but I don’t have the reference now.  Did we changed in the latest version of the image in terms of user or group ?  Someone suggested me to attach to persistent volume in Openshift , it will work 

Sent from Yahoo Mail for iPhone

On Monday, May 4, 2020, 2:37 AM, Michael Biarnés Kiefer notifications@github.com wrote:

Hi, Btw in the Note it says:

Can you please send your questions to drools-usage@gmail.com or drools-setup@gmail.com - I think here is more people that may help you. Thank you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ckvtvm-arch commented 4 years ago

Let me see if this works: USER root RUN chgrp -R 0 $JBOSS_HOME &&\ chmod -R g+rw $JBOSS_HOME

ckvtvm-arch commented 4 years ago

I know that it may not work in OCP, but i am confident as it worked earlier in openshift .

My initial issue with respect to accessing application users /roles properties is resolved, but right now i am into a different issue in OCP

Failed to read or configure the org.jboss.logmanager.LogManager /opt/jboss/wildfly/standalone/log/server.log (Permission denied)

I have done a /bin/bash in my container in my docker and i dont see the log folder. do you want me to create a dummy folder and a dummy file for server/server.log ?.

ckvtvm-arch commented 4 years ago

Email bounced back from both DL - drools-usage and drools-setup Gmail 

Sent from Yahoo Mail for iPhone

On Monday, May 4, 2020, 1:13 PM, chenthil kumar ckv.tvm@yahoo.com wrote:

It worked once in Openshift , but I don’t have the reference now.  Did we changed in the latest version of the image in terms of user or group ?  Someone suggested me to attach to persistent volume in Openshift , it will work 

Sent from Yahoo Mail for iPhone

On Monday, May 4, 2020, 2:37 AM, Michael Biarnés Kiefer notifications@github.com wrote:

Hi, Btw in the Note it says:

Can you please send your questions to drools-usage@gmail.com or drools-setup@gmail.com - I think here is more people that may help you. Thank you.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

mbiarnes commented 4 years ago

I am so sorry - I gave you the wrong addresses: drools-setup@googlegroups.com and drools-usage@googlegroups.com

ckvtvm-arch commented 4 years ago

No probs , I send to the right group now. 

Sent from Yahoo Mail for iPhone

On Tuesday, May 5, 2020, 3:07 AM, Michael Biarnés Kiefer notifications@github.com wrote:

I am so sorry - I gave you the wrong addresses: drools-setup@googlegroups.com and drools-usage@googlegroups.com

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ckvtvm-arch commented 4 years ago

Also do you know how I can get the deployment YAML for  jBpm 7.1 or 7.2 . Is it a licensed one such that I cannot get it . I am thinking whether I can change the template for the images which are already present in my  openshift ! 

Sent from Yahoo Mail for iPhone

On Tuesday, May 5, 2020, 3:51 PM, chenthil kumar ckv.tvm@yahoo.com wrote:

No probs , I send to the right group now. 

Sent from Yahoo Mail for iPhone

On Tuesday, May 5, 2020, 3:07 AM, Michael Biarnés Kiefer notifications@github.com wrote:

I am so sorry - I gave you the wrong addresses: drools-setup@googlegroups.com and drools-usage@googlegroups.com

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ckvtvm-arch commented 4 years ago

Also do you know how I can get the deployment YAML for  jBpm 7.1 or 7.2 . Is it a licensed one such that I cannot get it . I am thinking whether I can change the template for the images which are already present in my  openshift ! 

Sent from Yahoo Mail for iPhone

On Tuesday, May 5, 2020, 3:07 AM, Michael Biarnés Kiefer notifications@github.com wrote:

I am so sorry - I gave you the wrong addresses: drools-setup@googlegroups.com and drools-usage@googlegroups.com

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

ckvtvm-arch commented 4 years ago

Finally it worked in openshift , but I am not able to find the kie server configuration and also not able to add it in business central