A Liferay DXP Helm chart for Kubernetes
As described in the Liferay documentation you can add scripts to the container to be executed at various times in the lifecycle of the container.
To achieve this use the following construct:
configmap:
data:
010_my_script.sh: |
#!/bin/bash
echo "Hello World!"
volumeMounts:
- mountPath: /usr/local/liferay/scripts/pre-configure/010_my_script.sh
name: liferay-file-resources
subPath: 010_my_script.sh
readOnly: true