Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: New Multi-variant Docker Images for Liferay Portal CE
Hello Liferay Community,
I want to present new multi-variant Docker images that I
developed for the Liferay Portal Community Edition. These images are
based on OpenJDK and Tomcat. The following JDK-OS variants are available:
- JDK 11, based on Debian Buster
- JDK 8, based on Debian Buster
- JDK 8, based on Alpine Linux
The implementation of Dockerfile templates for the variants mentioned
above is similar to Dockerfile templates that can be found in the Docker
Hub's official images.
Some of the implementation details to highlight:
- Use a multi-stage build to reduce the image size.
- Step down from root to a non-privileged user during container startup.
- Override CMD's default values.
- Externalize the LIFERAY_HOME/deploy and LIFERAY_HOME/data/document_library directories.
- Add new files or override existing ones.
- Allow execution of custom shell scripts.
7.3.6-ga7 is the latest version released:
- ibaiborodine/liferay-portal-ce:7.3.6-ga7-jdk11-buster
- ibaiborodine/liferay-portal-ce:7.3.6-ga7-jdk8-buster
- ibaiborodine/liferay-portal-ce:7.3.6-ga7-jdk8-alpine
NOTE: Bundled with Liferay Commerce.
For more details, please see the repository
on Docker Hub.
Thank you,
Igor Baiborodine
- Create a directory on a suitable volume on your host system, e.g. /my/own/liferaybasedir.
- In the portal-ext.properties file, define the connection properties for your external DB.
- Place the portal-ext.properties file into the /my/own/liferaybasedir directory.
- Start your liferay-portal instance like this:
Then the portal-ext.properties file will be copied to container's LIFERAY_HOME directory when the container starts.
Also, here is an example of docker-compose.yml with an externalized data source (MySQL). You can test it in your local dev by executing the following commands:
$ git clone https://github.com/igor-baiborodine/docker-liferay-portal-ce.git
$ cd docker-liferay-portal-ce/compose/liferay-mysql
$ docker-compose up -d
Slghtly unrelated perhaps but I was wondering if there's a Docker image of Liferat 7.3.x without the Commerce module?
Powered by Liferay™