-
Notifications
You must be signed in to change notification settings - Fork 53
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
persistent volume #28
Comments
Hi @shd128, could you please post an example of the docker call? Thanks! |
Manuel, how are you? |
Hey @shd128, what are you going to add as a volume? A directory with your JAR/WAR files? configuration files? I'd like to understand your use case to provide a better answer, identifying a potential issue with the volumes |
Hey @mdelapenya yes, I need a directory with JAR/WAR files. Where should I mount such volume? Thanks again |
Hi @shd128, the liferay apps directory is under $LIFERAY_HOME/data/osgi, which uses different specialised directories for each type of application: themes, core apps, etc. I recommend you to SSH into a local docker image (docker run + docker exec) and examine the contents of that $LIFERAY_HOME directory. If you are mounting the $LIFERAY_HOME/deploy dir, then you'll notice that the files "dissapear", because Liferay's auto-deploy system is moving them from there to the proper osgi folder. That's the reason you would like to map your $LIFERAY_HOME/data/osgi instead. One main concern here: because you mentioned you are using OpenShift, I could imagine you are in the kubernetes world. Be careful about sharing state between different containers/scaled services, otherwise all of them will share same information and possibly a cluster won't work because of that. I recommend you that have the proper automation in place to deploy your apps to each scaled service's volume, without sharing configuration. I'd also like to point you to Liferay Learn and the Forums, in the case you need more info. The Liferay folks will be very glad for answering your questions. |
Thanks for the info @mdelapenya |
The mount point would be "/liferay/data/osgi", but I'm not sure it's a good idea to override Liferay's default directories. As Liferay listens to anything OSGi under the $LIFERAY_HOME/data/osgi folder, try using a custom one for your apps: "/liferay/data/osgi/my-apps", then the OSGi container will discover them at startup |
Hi,
Im having trouble with the persistent volume.
In which path should I mount it?
Everytime I restart my container it gets back to default.
Im using version 7.2.1
Thanks
The text was updated successfully, but these errors were encountered: