Issue
- The hotfix is so large that it is cannot be added to GitHub repository from local Liferay environment.
- GitHub has 100MB limit and large file support would add more costs (if it would resolve it).
Environment
- Liferay PaaS
Resolution
-
The best way to resolve this use case is to create a file called
Dockerfile.extunderLiferayfolder.
Everything in this file will be added at the end of the Dockerfile created bycreateDockerfile. -
In this Dockerfile the following line can be added, replacing XXXX for the hotfix to be installed:
RUN /opt/liferay/patching-tool/patching-tool.sh install hotfix-XXXX
This way it will download the hotfix before the container gets up. -
(It is probable that running a newer Docker image already contains the newest patching tool, therefore the newest patching tool not necessary to be added, but stay alert to any errors regarding the patching tool.)