Liferay Helm Chart

A Liferay DXP Helm chart for Kubernetes

View the Project on GitHub LiferayCloud/liferay-helm-chart

Adding Container Scripts

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