From 576149de097c87b7009c9193922ce3dbea3beaaa Mon Sep 17 00:00:00 2001 From: Vdauphin Date: Sat, 27 May 2023 14:40:30 +0200 Subject: Add LanguageTool (#933) * add languagetool * tweak description * Use containerHttpPort * rm ports as handle by containerHttpPort --- public/v4/apps/languagetool.yml | 42 +++++++++++++++++++++++++++++++++++++++ public/v4/logos/languagetool.png | Bin 0 -> 7776 bytes 2 files changed, 42 insertions(+) create mode 100644 public/v4/apps/languagetool.yml create mode 100644 public/v4/logos/languagetool.png diff --git a/public/v4/apps/languagetool.yml b/public/v4/apps/languagetool.yml new file mode 100644 index 0000000..9b098f7 --- /dev/null +++ b/public/v4/apps/languagetool.yml @@ -0,0 +1,42 @@ +captainVersion: 4 +services: + $$cap_appname: + image: erikvl87/languagetool:$$cap_version + restart: always + environment: + langtool_languageModel: /ngrams # OPTIONAL: Using ngrams data + Java_Xms: $$cap_min_size # OPTIONAL: Setting a minimal Java heap size of 512 mib + Java_Xmx: $$cap_max_size # OPTIONAL: Setting a maximum Java heap size of 1 Gib + #langtool_pipelinePrewarming: true + volumes: + - $$cap_appname-data:/ngrams + caproverExtra: + containerHttpPort: 8010 +caproverOneClickApp: + variables: + - id: $$cap_version + label: LanguageTool Version + defaultValue: '6.1' + description: Check out their docker page for the valid tags https://hub.docker.com/r/erikvl87/languagetool/tags + validRegex: /^([^\s^\/])+$/ + - label: Minimal heap size + description: Setting a minimal Java heap size + defaultValue: 512m + id: $$cap_min_size + - label: Maximum heap size + description: Setting a maximum Java heap size + defaultValue: 1g + id: $$cap_max_size + instructions: + start: >- + LanguageTool is an Open Source proofreading software for English, Spanish, French, German, Portuguese, Polish, Dutch, and more than 20 other languages. It finds many errors that a simple spell checker cannot detect. + end: >- + You're done! 😄 + + You can test your configuration here: http://$$cap_appname.$$cap_root_domain/v2/check?language=en-US&text=my+text + + To configure your LanguageTool client use this link in _other server_ section: http://$$cap_appname.$$cap_root_domain/v2/ + displayName: 'LanguageTool' + isOfficial: false + description: Style and Grammar Checker for 25+ Languages. + documentation: Taken from https://hub.docker.com/r/erikvl87/languagetool diff --git a/public/v4/logos/languagetool.png b/public/v4/logos/languagetool.png new file mode 100644 index 0000000..7aef2fb Binary files /dev/null and b/public/v4/logos/languagetool.png differ -- cgit v1.2.3