-
Notifications
You must be signed in to change notification settings - Fork 148
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
File copy in Kubernetes #65
Comments
@zsoltbalogh @lorenzozimolo from my understanding of the files mount point it is intended to be a LIFERAY_HOME override, which houses the tomcat app server and liferay web app. Based on my understanding of this extension point I would not suggest implementing the configure_liferay.sh script to read through symlinks and copy the underlying files. in fact we use symlinks on the tomcat folder so that we can target it correctly even though its a link to the tomcat-version folder. @lorenzozimolo you might be able to use the pre-configure lifecycle phase to read the configMap/secret file and then put it into the right location. I've used inotifywait to accomplish a dynamic copy of files from the configMap directory into the liferay deploy folder like this:
|
@lorenzozimolo in configure_liferay.sh just update |
Hello.
in Kubernetes I can mount a ConfigMap under /mnt/liferay/files (and subfolders) instead of mounting a volume.
These files are exposed as symbolic links to hidden folders, to manage updates on ConfigMaps.
As a result the automatic copy in configure_liferay.sh, creates links and not regular files in the destination folders, and this fact denies modifications of the files (for example to inject credentials or other env variables), because ConfigMaps are immutable inside the container.
At the moment I execute a script before starting the server with the following code:
but it's only a workaround.
Is it possible to better support this situation?
thanks
Lorenzo
The text was updated successfully, but these errors were encountered: