Importing a theme for a Kubernetes deployment - Alfresco Content Services - 23.4 - 23.4 - Ready - Alfresco - external

Alfresco Content Services

Platform
Alfresco
Product
Alfresco Content Services
Release
23.4
License

There are a number of options for importing a theme into a Kubernetes deployment, for example:

  • Create a new Docker image that contains a custom theme.

  • Use an emptyDir that is shared with the Keycloak container and configure an init container that runs the new theme image and copies it into the theme directory.

    The following is an example of configuring this in the values.yaml:

      keycloak:
          extraInitContainers: |
              - name: custom-theme
                image: <theme-image-location-and-tag>
                imagePullPolicy: IfNotPresent
                command:
                  - sh
                args:
                  - -c
                  - |
                    echo "copying new theme..."
                    cp -R /<theme-image-name>/* /theme
                volumeMounts:
                  - name: theme
                  mountPath: /theme
        
          extraVolumeMounts: |
              - name: theme
                mountPath: /opt/keycloak/themes/<theme-folder-name>
        
          extraVolumes: |
              - name: theme
                emptyDir: {}
    

However a new theme is imported, the new theme will need to be applied by signing into the Keycloak Admin Console and selecting the new themes for each component in the Themes tab under Realm Settings.