Merge: 5d39a84a ba438022
Author: Jörn Friedrich Dreyer <jfd@butonic.de>
Date:   Wed Jul 7 10:27:23 2021 +0200

    Merge pull request #2168 from owncloud/extensions-template-adr

    [docs-only] draft an adr for extension templates
This commit is contained in:
Jörn Friedrich Dreyer committed 2021-07-07 08:29:07 +00:00
1 parent 3b026be378
commit 17945973e5
16 files changed
+3178 -3112

No files matched your search

+244 -244
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:36:29+0000"
date: "2021-07-07T08:27:40+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/accounts/templates
@@ -119,6 +119,249 @@ Usage: `accounts ocis-accounts [command options] [arguments...]`
### accounts inspect
Show detailed data on an existing account
Usage: `accounts inspect [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts list
List existing accounts
Usage: `accounts list [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts remove
Removes an existing account
Usage: `accounts remove [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
@@ -675,249 +918,6 @@ Usage: `accounts rebuildIndex [command options] [arguments...]`
### accounts remove
Removes an existing account
Usage: `accounts remove [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts inspect
Show detailed data on an existing account
Usage: `accounts inspect [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
### accounts list
List existing accounts
Usage: `accounts list [command options] [arguments...]`
-grpc-namespace | $ACCOUNTS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $ACCOUNTS_NAME
: service name. Default: `"accounts"`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:17+0000"
date: "2021-07-07T08:28:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/glauth/templates
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:17+0000"
date: "2021-07-07T08:28:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/graph-explorer/templates
+88 -88
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:17+0000"
date: "2021-07-07T08:28:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/graph/templates
@@ -34,93 +34,6 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### graph health
Check health status
Usage: `graph health [command options] [arguments...]`
-debug-addr | $GRAPH_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9124"`.
### graph ocis-graph
Serve Graph API for oCIS
Usage: `graph ocis-graph [command options] [arguments...]`
-config-file | $GRAPH_CONFIG_FILE
: Path to config file. Default: `""`.
-log-level | $GRAPH_LOG_LEVEL , $OCIS_LOG_LEVEL
: Set logging level.
-log-pretty | $GRAPH_LOG_PRETTY , $OCIS_LOG_PRETTY
: Enable pretty logging.
-log-color | $GRAPH_LOG_COLOR , $OCIS_LOG_COLOR
: Enable colored logging.
### graph server
@@ -232,4 +145,91 @@ Usage: `graph server [command options] [arguments...]`
-extensions |
: Run specific extensions during supervised mode. This flag is set by the runtime.
### graph health
Check health status
Usage: `graph health [command options] [arguments...]`
-debug-addr | $GRAPH_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9124"`.
### graph ocis-graph
Serve Graph API for oCIS
Usage: `graph ocis-graph [command options] [arguments...]`
-config-file | $GRAPH_CONFIG_FILE
: Path to config file. Default: `""`.
-log-level | $GRAPH_LOG_LEVEL , $OCIS_LOG_LEVEL
: Set logging level.
-log-pretty | $GRAPH_LOG_PRETTY , $OCIS_LOG_PRETTY
: Enable pretty logging.
-log-color | $GRAPH_LOG_COLOR , $OCIS_LOG_COLOR
: Enable colored logging.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:17+0000"
date: "2021-07-07T08:28:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/idp/templates
+76 -76
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:17+0000"
date: "2021-07-07T08:28:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/ocs/templates
@@ -34,6 +34,81 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### ocs version
Print the versions of the running instances
Usage: `ocs version [command options] [arguments...]`
-http-namespace | $OCS_NAMESPACE
: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`.
-name | $OCS_NAME
: Service name. Default: `"ocs"`.
### ocs health
Check health status
Usage: `ocs health [command options] [arguments...]`
-debug-addr | $OCS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9114"`.
### ocs ocis-ocs
@@ -170,81 +245,6 @@ Usage: `ocs server [command options] [arguments...]`
-extensions |
: Run specific extensions during supervised mode.
### ocs version
Print the versions of the running instances
Usage: `ocs version [command options] [arguments...]`
-http-namespace | $OCS_NAMESPACE
: Set the base namespace for the http namespace. Default: `"com.owncloud.web"`.
-name | $OCS_NAME
: Service name. Default: `"ocs"`.
### ocs health
Check health status
Usage: `ocs health [command options] [arguments...]`
-debug-addr | $OCS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9114"`.
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:17+0000"
date: "2021-07-07T08:28:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/onlyoffice/templates
+49 -49
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:17+0000"
date: "2021-07-07T08:28:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/proxy/templates
@@ -34,6 +34,54 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### proxy health
Check health status
Usage: `proxy health [command options] [arguments...]`
-debug-addr | $PROXY_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9109"`.
### proxy ocis-proxy
@@ -295,52 +343,4 @@ Usage: `proxy version [command options] [arguments...]`
-service-name | $PROXY_SERVICE_NAME
: Service name. Default: `"proxy"`.
### proxy health
Check health status
Usage: `proxy health [command options] [arguments...]`
-debug-addr | $PROXY_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9109"`.
+37 -37
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:17+0000"
date: "2021-07-07T08:28:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/settings/templates
@@ -34,42 +34,6 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### settings health
Check health status
Usage: `settings health [command options] [arguments...]`
-debug-addr | $SETTINGS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9194"`.
### settings ocis-settings
@@ -247,4 +211,40 @@ Usage: `settings version [command options] [arguments...]`
-name | $SETTINGS_NAME
: service name. Default: `"settings"`.
### settings health
Check health status
Usage: `settings health [command options] [arguments...]`
-debug-addr | $SETTINGS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9194"`.
File diff suppressed because it is too large. Load diff
+34 -34
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:18+0000"
date: "2021-07-07T08:28:22+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/store/templates
@@ -35,39 +35,6 @@ If multiple variables are listed for one option, they are in order of precedence
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### store version
Print the versions of the running instances
Usage: `store version [command options] [arguments...]`
-grpc-namespace | $STORE_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $STORE_NAME
: Service name. Default: `"store"`.
### store health
Check health status
@@ -206,3 +173,36 @@ Usage: `store server [command options] [arguments...]`
### store version
Print the versions of the running instances
Usage: `store version [command options] [arguments...]`
-grpc-namespace | $STORE_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
-name | $STORE_NAME
: Service name. Default: `"store"`.
+68 -68
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:18+0000"
date: "2021-07-07T08:28:23+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/thumbnails/templates
@@ -34,73 +34,6 @@ If multiple variables are listed for one option, they are in order of precedence
### Commandline flags
If you prefer to configure the service with commandline flags you can see the available variables below. Command line flags are only working when calling the subcommand directly.
### thumbnails health
Check health status
Usage: `thumbnails health [command options] [arguments...]`
-debug-addr | $THUMBNAILS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9189"`.
### thumbnails ocis-thumbnails
Example usage
Usage: `thumbnails ocis-thumbnails [command options] [arguments...]`
### thumbnails server
@@ -240,4 +173,71 @@ Usage: `thumbnails version [command options] [arguments...]`
-grpc-namespace | $THUMBNAILS_GRPC_NAMESPACE
: Set the base namespace for the grpc namespace. Default: `"com.owncloud.api"`.
### thumbnails health
Check health status
Usage: `thumbnails health [command options] [arguments...]`
-debug-addr | $THUMBNAILS_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9189"`.
### thumbnails ocis-thumbnails
Example usage
Usage: `thumbnails ocis-thumbnails [command options] [arguments...]`
+1 -1
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:19+0000"
date: "2021-07-07T08:28:23+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/web/templates
+34 -34
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:19+0000"
date: "2021-07-07T08:28:23+0000"
weight: 20
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/webdav/templates
@@ -66,6 +66,39 @@ Usage: `webdav [global options] command [command options] [arguments...]`
## Sub Commands
### webdav health
Check health status
Usage: `webdav health [command options] [arguments...]`
-debug-addr | $WEBDAV_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9119"`.
### webdav server
@@ -195,37 +228,4 @@ Usage: `webdav version [command options] [arguments...]`
-service-name | $WEBDAV_SERVICE_NAME
: Service name. Default: `"webdav"`.
### webdav health
Check health status
Usage: `webdav health [command options] [arguments...]`
-debug-addr | $WEBDAV_DEBUG_ADDR
: Address to debug endpoint. Default: `"0.0.0.0:9119"`.
+66
View File
@@ -0,0 +1,66 @@
---
title: "8. Extension Template"
---
* Status: proposed
* Deciders: @c0rby <!-- optional -->
* Date: 2021-06-10
Technical Story: [description | ticket/issue URL] <!-- optional -->
## Context and Problem Statement
We want to accelerate and simplify extension development by removing the necessity to type or copy the boilerplate code. Can we provide a template or a similar mechanism to aid when developing new extensions?
## Decision Drivers <!-- optional -->
* The solution should be easily maintainable.
* It should always be up-to-date.
* The solution should be easy to use.
## Considered Options
* Use [boilr](https://github.com/tmrts/boilr)
* Create a template git repository.
* Use [ocis-hello](https://github.com/owncloud/ocis-hello/) as a "template"
## Decision Outcome
Chosen option: "[option 1]", because [justification. e.g., only option, which meets k.o. criterion decision driver | which resolves force force | … | comes out best (see below)].
### Positive Consequences: <!-- optional -->
* [e.g., improvement of quality attribute satisfaction, follow-up decisions required, …]
* …
### Negative consequences: <!-- optional -->
* [e.g., compromising quality attribute, follow-up decisions required, …]
* …
## Pros and Cons of the Options <!-- optional -->
### [boilr](https://github.com/tmrts/boilr)
We have a boilr template already. [boilr-ocis-extension](https://github.com/owncloud/boilr-ocis-extension/)
This approach is nice because it provides placeholders which can be filled during the generation of a new extension from the template. It also provides prompts for the placeholder values during generation.
* Good, because with the placeholders it is hard to miss values which should be changed
* Bad, because maintaining is more complex
### Template git repository
Create a git repository with an extension containing the boilerplate code.
* Good, because we can use the usual tools for QA and dependency scanning/updating.
* Good, because it doesn't require any additional tool.
### [ocis-hello](https://github.com/owncloud/ocis-hello/) as a "template"
We have the ocis-hello repository which acts as an example extension containing a grpc and http service and a web UI. It also demonstrates the usage of the settings service.
* Good, because it contains a bit more code than just the plain boilerplate
* Good, because the integration into oCIS is already tested for the Hello extension (eg. with Proxy and Settings). This will ensure, that the example extension is up to date.
* Bad, because if you don't require all features you have to delete stuff
+90 -90
View File
@@ -1,6 +1,6 @@
---
title: "Configuration"
date: "2021-07-07T07:37:17+0000"
date: "2021-07-07T08:28:22+0000"
weight: 2
geekdocRepo: https://github.com/owncloud/ocis
geekdocEditPath: edit/master/ocis/templates
@@ -108,11 +108,11 @@ Usage: `ocis [global options] command [command options] [arguments...]`
## Sub Commands
### ocis list
### ocis health
Lists running ocis extensions
Check health status
Usage: `ocis list [command options] [arguments...]`
Usage: `ocis health [command options] [arguments...]`
@@ -128,33 +128,8 @@ Usage: `ocis list [command options] [arguments...]`
### ocis kill
Kill an extension by name
Usage: `ocis kill [command options] [arguments...]`
-debug-addr | $OCIS_DEBUG_ADDR
: Address to debug endpoint. Default: `0.0.0.0:9010`.
@@ -216,11 +191,11 @@ Usage: `ocis server [command options] [arguments...]`
-extensions | $OCIS_RUN_EXTENSIONS
: Run specific extensions during supervised mode.
### ocis health
### ocis kill
Check health status
Kill an extension by name
Usage: `ocis health [command options] [arguments...]`
Usage: `ocis kill [command options] [arguments...]`
@@ -236,8 +211,33 @@ Usage: `ocis health [command options] [arguments...]`
-debug-addr | $OCIS_DEBUG_ADDR
: Address to debug endpoint. Default: `0.0.0.0:9010`.
### ocis list
Lists running ocis extensions
Usage: `ocis list [command options] [arguments...]`
@@ -279,58 +279,14 @@ Usage: `ocis run [command options] [arguments...]`
There are more subcommands to start the individual extensions. Please check the documentation about their usage and options in the dedicated section of the documentation.
#### ocis storage-groupprovider
#### ocis accounts
Start storage groupprovider service
#### ocis proxy
Start proxy server
#### ocis storage-home
Start storage and data provider for /home mount
#### ocis storage-users
Start storage and data provider for /users mount
#### ocis store
Start a go-micro store
#### ocis version
Lists running services with version
Start accounts server
#### ocis glauth
Start glauth server
#### ocis onlyoffice
Start onlyoffice server
#### ocis settings
Start settings server
#### ocis web
Start web server
#### ocis storage-sharing
Start storage sharing service
#### ocis webdav
Start webdav server
#### ocis storage-auth-bearer
Start storage auth-bearer service
#### ocis storage-frontend
Start storage frontend
@@ -339,35 +295,79 @@ Start storage frontend
Start storage and data service for metadata
#### ocis onlyoffice
Start onlyoffice server
#### ocis storage-public-link
Start storage public link storage
#### ocis accounts
#### ocis webdav
Start accounts server
Start webdav server
#### ocis idp
#### ocis settings
Start idp server
Start settings server
#### ocis storage-userprovider
#### ocis storage-auth-bearer
Start storage userprovider service
Start storage auth-bearer service
#### ocis storage-home
Start storage and data provider for /home mount
#### ocis storage-sharing
Start storage sharing service
#### ocis thumbnails
Start thumbnails server
#### ocis storage-gateway
Start storage gateway
#### ocis store
Start a go-micro store
#### ocis storage-userprovider
Start storage userprovider service
#### ocis storage-groupprovider
Start storage groupprovider service
#### ocis version
Lists running services with version
#### ocis web
Start web server
#### ocis idp
Start idp server
#### ocis ocs
Start ocs server
#### ocis proxy
Start proxy server
#### ocis storage-auth-basic
Start storage auth-basic service
#### ocis storage-gateway
#### ocis storage-users
Start storage gateway
Start storage and data provider for /users mount