Skip to content

mmariuzzo/liferay-docker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LIFERAY DOCKER IMAGE BUILDER

Made some changes to:

  • support RHEL/CentOS (I haven't tested other OS)
  • kill tomcat if it doesn't stop after 25 seconds
  • use an already downloaded license file.
    File have to be pointed by LIFERAY_DOCKER_LICENSE_FILE environment variable.
  • upgrade PatchingTool tool.
    Use LIFERAY_DOCKER_PATCHING_TOOL environment variable to point to new pathing-tool zip
  • apply fixpack or hotfix.
    Use LIFERAY_DOCKER_PATCHES_FOLDER environment variable to identity folder with the fixpacks or hotfix to install
  • define a custom release name.
    Use LIFERAY_DOCKER_CUSTOM_RELEASE environment variable to set it

Example

Suppose you have a regular Liferay Subscription and want to create a Liferay 7.1 DXP image with FixPack 11. You have to:

  • go inside my rhel-centos branch

    $ git clone https://github.com/mmariuzzo/liferay-docker
    $ cd liferay-docker
    $ git checkout rhel-centos
  • create a folder to place Liferay 7.1 DXP sp2 Tomcat Bundle (the bundle you want to start from)

    $ mkdir -p releases/portal/7.1.10.2
  • grab the tomcat bundle from Liferay site and place inside it. The file is named liferay-dxp-tomcat-7.1.10.2-sp2-20190422172027516.zip

  • create a forder name extras and place you licence xml inside it

    $ mkdir extras
  • grab the latest version of PatchingTool from Liferay site and place inside it. The actual latest version is named patching-tool-2.0.12.zip.

  • create a folder to host fixpack and hotfix

    $ mkdir -p extras/patches
  • grab the required fixpack from Liferay site and place inside that folder. Actually we have only liferay-fix-pack-dxp-11-7110.zip.

  • grab the file module-mapping.txt and place it inside that folder

  • set the required environment variables

    $ export LIFERAY_DOCKER_LICENSE_FILE=/path/to/liferay-docker/extras/activation-key-xyz.xml
    $ export LIFERAY_DOCKER_FIXPACK_FOLDER=/path/to/liferay-docker/extras/patches
    $ export LIFERAY_DOCKER_PATCHING_TOOL=/path/to/liferay-docker/extras/patching-tool-2.0.12.zip
    $ export LIFERAY_DOCKER_CUSTOM_RELEASE=7.1.10.fp11
  • run the image creation using original Liferay repository url (local file will be used instead)

    $ bash build_image.sh files.liferay.com/private/ee/portal/7.1.10.2/liferay-dxp-tomcat-7.1.10.2-sp2-20190422172027516.zip

About

My changes in rhel-centos branch

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 91.2%
  • Dockerfile 8.8%