Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow add custom plugin for docs using helm chart #362

Open
vinibsi opened this issue Nov 1, 2024 · 1 comment
Open

Allow add custom plugin for docs using helm chart #362

vinibsi opened this issue Nov 1, 2024 · 1 comment
Labels
feature request Issues that request new features to be added to OnlyOffice

Comments

@vinibsi
Copy link

vinibsi commented Nov 1, 2024

We're using docs documentserver deployed by Helm Chart inside our on-primeses kubernetes cluster and all things are working great. A feature was requested and we created a custom plugin. In our local dev machine, using docker version, the custom plugin was added manually, tested and approved. When we started to deploy in the staging server, we needed to extend the docker image and copy the plugin folder.

Why not create a ConfigMap with binaryData pointing to plugin.tar.gz, and inside a sidecar in docserver, with an extra volume we extract plugin inside sdkjs-plugins?

My idea

ConfigMap.yaml

apiVersion: v1
kind: ConfigMap
metadata:
  name: custom-plugin-tar-gz
  namespace: onlyoffice
binaryData:
  custom-plugin.tar.gz: >-
    base64 encoded

Docs helm chart Values.yaml:

docservice:
  initContainers:
      - name: deploy-custom-plugin
      image: busybox:1.37.0
      command: ['sh', '-c', 'tar -zxvf /var/www/onlyoffice/custom-plugins/custom-plugin.tar.gz -C /var/www/onlyoffice/documentserver/sdkjs-plugins/']
      volumeMounts:
        - name: custom-plugins
          mountPath: /var/www/onlyoffice/custom-plugins
 volumes:
  - name:   custom-plugins
     configMap:
       - name: custom-plugin-tar-gz
@igwyd
Copy link
Member

igwyd commented Nov 6, 2024

Hello @vinibsi, thanks for the enhancement suggestion, this is an issue #71492

@Rita-Bubnova Rita-Bubnova added the feature request Issues that request new features to be added to OnlyOffice label Nov 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Issues that request new features to be added to OnlyOffice
Projects
None yet
Development

No branches or pull requests

4 participants