Coder Social home page Coder Social logo

Comments (11)

doyoungim999 avatar doyoungim999 commented on August 29, 2024 1

I resolved

from liferay-docker.

zsoltbalogh avatar zsoltbalogh commented on August 29, 2024

Thanks for updating the ticket, closing!

from liferay-docker.

MarcoPortillo avatar MarcoPortillo commented on August 29, 2024

@doyoungim999 I have the same problem, how did you resolve it?

from liferay-docker.

doyoungim999 avatar doyoungim999 commented on August 29, 2024

@MarcoPortillo

you may try this:

$oc create serviceaccount useroot
$oc adm policy add-scc-to-user anyuid -z useroot
$oc edit dc/portal
spec:
serviceAccountName: useroot

from liferay-docker.

MarcoPortillo avatar MarcoPortillo commented on August 29, 2024

@doyoungim999 It does not work, it says my user does not have permission to do this

from liferay-docker.

doyoungim999 avatar doyoungim999 commented on August 29, 2024

I don't know the error message.
You need openshift admin user authority to create service account.

from liferay-docker.

MarcoPortillo avatar MarcoPortillo commented on August 29, 2024

@doyoungim999 Can I contact you somehow to explain better? I am new to Liferay, docker and openshift so I am kinda lost with the steps. If you have time

from liferay-docker.

doyoungim999 avatar doyoungim999 commented on August 29, 2024

Are you running on openshift ?
I am not liferay expert either.
Please describe the steps in detail with your error here.

from liferay-docker.

MarcoPortillo avatar MarcoPortillo commented on August 29, 2024

@doyoungim999 Yes, openshift 4.5 and Liferay 7.2.

First I created my docker image from my Liferay Environment, I use these steps: https://help.liferay.com/hc/en-us/articles/360022307392-Leveraging-Docker

Second, I found about this Openshift-ready liferay image project: https://hub.docker.com/r/simontim/liferay-openshift if I use this image directly in my openshift environment, I don't have any permission issues, even using the same user and it works perfectly but is liferay 7.0 and I need 7.2 with all my projects and configs. I tried to copy the steps he uses in his DOCKERFILE in my local dockerfile (of course, adapting my paths), but still doesn't work.

Lastly, I just upload my docker image to docker hub and pull from there to my openshift environment. I get these errors:

image

this happen when I start the pod and it tries to start the liferay instance.

I also tried your steps, but I get this message error:

image2

I would really thankful if you could help me somehow πŸ‘

P.S: If I use a normal liferay image from the docker hub (for example 7.3), or my liferay image environment without any dockerfile configuration, I still get the same permission issue error.

from liferay-docker.

doyoungim999 avatar doyoungim999 commented on August 29, 2024

permission denied can be related with serviceaccount in openshift.
If you're using podman or docker, you will not have this error.
So i suggest you create service account with administroator "kubeadmin".
after you create a serviceaccount, you need to add serviceAccountname in deployment disciptor like th attached.
I run the following in my case:
$oc edit deployment portal
image

from liferay-docker.

MarcoPortillo avatar MarcoPortillo commented on August 29, 2024

@doyoungim999 thank you, unfortunately we don't have access to create a service account with administrator "kubeadmin"

I have a jenkins instance in my openshift, do you think if I try to create my liferay docker image directly there, it could make a difference?

from liferay-docker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.