Integration & IT Modernization

How to Run Liferay in Docker

Covid 19
COVID-19: Digital Insights For Enterprise Action

Access Perficient’s latest insights into how you can leverage digital technologies to not only respond to the pandemic, but drive your operations forward and deliver experiences your customers need.

Get Informed

One of today’s trending technologies is Docker, useful and being widely applied in the continuous integration (CI), continuous delivery (CD) and auto deployment practices. While commonly used in application development use cases, there are also successes in digital experience situations, as our Perficient China team has discovered. Their implementation makes our entire application/instance to be lightweight in the deployment and lay the foundation of CI & CD.
Step 1 – Requirements
The China team has been running a Liferay 6.2 portlet application and MySQL 5.7 DB instance in a Linux box for a while. Many customized objects such as SSO, users, groups, theme, structure, template and portlets have been created in the application, so the migration work is quite different with the brand-new Liferay installation. They installed a new host Linux machine as a target, inside the host they run MySQL.
Step 2 – Solution Overview
In their case, the China team set up another Linux box to install Docker and then transfer the current Liferay application and MySQL schema into the Docker containers, but there is no change on the access method for the end users as they can just access the new Host machine with specified port (e.g. 8080). The latest Docker installations requires CentOS 7 version. The most effort spent during the installation and configuration are on the Docker images building and debugging. It includes the 3 parts:

  • Install Docker environments in CentOS 7.0
  • Build MySQL image, run the container and migrate scheme data
  • Build Liferay 6.3 image, run the container and do the validation

You can read more of what they did on our Delivery Blog and try out the implementation for yourself. Let us know how it works as you spin up your Liferay implementation.
Learn More
Are you looking to transform your organization’s digital experience strategy? See how Liferay can help by downloading our guide and get in touch with one of our specialists at sales@perficient.com.

About the Author

Albert Qian is a Marketing Manager at Perficient for our IBM PCS, DevOps, and Enterprise Solutions Partners focused on cloud computing technologies.

More from this Author

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Subscribe to the Weekly Blog Digest:

Sign Up