You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@streampipes.apache.org by wi...@apache.org on 2020/08/19 08:44:36 UTC
[incubator-streampipes-installer] branch new_installer updated:
[STREAMPIPES-196] add description how to modify/create environment
templates
This is an automated email from the ASF dual-hosted git repository.
wiener pushed a commit to branch new_installer
in repository https://gitbox.apache.org/repos/asf/incubator-streampipes-installer.git
The following commit(s) were added to refs/heads/new_installer by this push:
new e5d6b2b [STREAMPIPES-196] add description how to modify/create environment templates
e5d6b2b is described below
commit e5d6b2bc80bef24b63b0adb425df288bf1bb4e70
Author: Patrick Wiener <wi...@fzi.de>
AuthorDate: Wed Aug 19 10:43:16 2020 +0200
[STREAMPIPES-196] add description how to modify/create environment templates
---
cli/README.md | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/cli/README.md b/cli/README.md
index 209e85f..cc59cba 100644
--- a/cli/README.md
+++ b/cli/README.md
@@ -80,6 +80,11 @@ Run 'streampipes COMMAND --help' for more info on a command.
streampipes template --list
```
+**Inspect** services in a given template to know what kind of services will be started as part this environment
+```bash
+streampipes template --inspect pipeline-element
+```
+
**Set** environment template, e.g. `pipeline-element` if you want to write a new pipeline element
```bash
streampipes template --set pipeline-element
@@ -138,6 +143,37 @@ streampipes restart
streampipes clean
```
+## Modify/Create an environment template
+As of now, this step has to be done **manually**. All environment templates are located in `bin/templates/environments`.
+
+```bash
+├── backend
+├── full
+├── lite
+├── pipeline-element
+└── ui
+```
+**Modifying an existing template**. To modify an existing template, you can simply add a `<YOUR_NEW_SERVICE>` to the template.
+> **NOTE**: You need to make sure, that the service your are adding exists in `deploy/standalone/service/<YOUR_NEW_SERVICE>`. If your're adding a completely new service take a look at existing ones, create a new service directory and include a `docker-compose.yml` and `docker-compose.dev.yml` file.
+
+```
+[environment:backend]
+activemq
+kafka
+...
+<YOUR_NEW_SERVICE>
+```
+
+**Creating a new** template. To create a new template, place a new file `bin/templates/environments/<YOUR_NEW_TEMPLATE>` in the template directory. Open the file and use the following schema.
+> **IMPORTANT**: Please make sure to have `[environment:<YOUR_NEW_TEMPLATE>]` header in the first line of your new template matching the name of the file. Make sure to use small caps letters (lowercase) only.
+
+```
+[environment:<YOUR_NEW_TEMPLATE>]
+<SERVICE_1>
+<SERVICE_2>
+...
+```
+
## Run `streampipes` from anywhere? No problem
Simply add the path to this cli directory to your `$PATH` (on macOS, Linux) variable, e.g. in your `.bashrc` or `.zshrc`, or `%PATH%` (on Windows).