Add LanguageTool (#933)

* add languagetool

* tweak description

* Use containerHttpPort

* rm ports as handle by containerHttpPort
This commit is contained in:
Vdauphin 2023-05-27 14:40:30 +02:00 committed by GitHub
parent 1dd990a164
commit 576149de09
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 42 additions and 0 deletions

View File

@ -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

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB