You COULD deploy fixpacks here, but you'll need the Patching Files for the baseline bundle that you are using. This is where you need to deploy any hotfixes that Support will hand out. In Part 2, the bulk of the work to convert a bundle to Docker will be here. Inside here is where the portal-ext.properties file goes, and anything you want to add to the app server deployment, such as JDBC drivers and custom plugins that you want to persist. This is where you interact with the file system of the application server (Tomcat). If you deploy something here, it will not persist if the image volumes are cleared. This is good for testing things out on a running image. Place files here and they will be deployed into the image. If we understand how these directories work in relation to the Docker container, we can use it to patch or even “Dockerize” a bundle. My personal preference is to keep the environment settings to a minimum and do the rest in portal-ext.properties. Not all portal.properties values will have equivalent Docker environment settings, but some will be useful when setting up things like JVM options or database connections. The exact entries can be found in the Liferay portal.properties file with the key is ALL_CAPS_WITH_UNDERSCORES. I will also assume a fair familiarity with a Liferay Tomcat bundle, and general familiarity with how a Liferay deployment works. I will assume you (the reader) will have Docker installed and know how to start a Docker image, as that Is about the extent of knowledge I had going into this. I have also rolled my own Docker image of Liferay, and maintenance was not easy, especially when considering repeatability and distributing copies to others. Of course, people are free to make their own Docker images to suit their needs, but this puts the burden of maintenance of said bundle on them, not on Liferay. I am using the DXP version, but the equivalent Portal CE version will be the same. The official Docker images can be found here: and the Overview tab provides all the information here. In this part, we will cover what the Liferay Docker image offers and the features/functions that are unique to the official Docker images. This is the result of my own experimentation and usage of said images. While the official Liferay Docker images have been out and available for many years now, and I'm sure many people are making use of them, I haven't been able to find documentation or a guide that talks about using them, so I wrote this.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |