diff options
author | Ulf Wiger <ulf@wiger.net> | 2016-05-10 19:00:30 +0200 |
---|---|---|
committer | Ulf Wiger <ulf@wiger.net> | 2016-05-10 19:00:30 +0200 |
commit | 0b3e9d1d42a92bb349acab7b7131d9ccae391076 (patch) | |
tree | b0182ddbd8a9151087447da27dcbd51b198cbb26 | |
parent | 9a3db2baecdddbfba8e8bfeb71038e4de6a44225 (diff) | |
parent | 01842c5b5980e3973f012da68021d7238b99b2a7 (diff) | |
download | rvi_core-release-0.5.0.tar.gz |
Merge pull request #95 from tjamison/53177release-0.5.0
[53177] Add steps for basic services in *bian installs
-rw-r--r-- | INSTALL_debian.md | 43 | ||||
-rw-r--r-- | INSTALL_raspbian.md | 50 |
2 files changed, 89 insertions, 4 deletions
diff --git a/INSTALL_debian.md b/INSTALL_debian.md index 590bc12..501cad2 100644 --- a/INSTALL_debian.md +++ b/INSTALL_debian.md @@ -102,6 +102,49 @@ Expected output: ├─1989 inet_gethost 4 └─1990 inet_gethost 4 +## GET STARTED WITH SERVICES ## + +Find out which services are registered through `rvi_get_services`: + + /usr/lib/rvi_core/rvi_get_services + +The command should return no output, since we have not registered any services yet. + +Register a service by calling `rvi_service` -- start with "hello": + + /usr/lib/rvi_core/rvi_service hello + +Expected output: + + RVI General Service. + RVI node URL: http://localhost:9001 + Service: genivi.org/vin/default_vin/hello + Press enter to quit: + +In another terminal, call `rvi_get_services` again to see the newly registered service: + + genivi.org/vin/default_vin/hello + +Invoke the service through `rvi_call` and the full service name: + + /usr/lib/rvi_core/rvi_call genivi.org/vin/default_vin/hello + +In terminal 1 (where you called `rvi_service`), you should see the following output: + + Service invoked! + args: {} + +In terminal 2 (where you called `rvi_call`), you should see the following output: + + RVI Node: http://localhost:9001 + Service: genivi.org/vin/default_vin/hello + args: {} + +You can pass arguments to a service call with the format name=value: + + /usr/lib/rvi_core/rvi_call genivi.org/vin/default_vin/hello \ + a=b message=hello + ## CREATE A RELEASE ## The installer configures a release with default (insecure) credentials. diff --git a/INSTALL_raspbian.md b/INSTALL_raspbian.md index 7d0da34..b520fae 100644 --- a/INSTALL_raspbian.md +++ b/INSTALL_raspbian.md @@ -93,10 +93,52 @@ Expected output: └─6094 /usr/lib/erlang/erts-7.2/bin/epmd -daemon -## CREATE A RELEASE ## +## GET STARTED WITH SERVICES ## + +Find out which services are registered through `rvi_get_services`: + + /usr/lib/rvi_core/rvi_get_services + +The command should return no output, since we have not registered any services yet. + +Register a service by calling `rvi_service` -- start with "hello": + + /usr/lib/rvi_core/rvi_service hello + +Expected output: + + RVI General Service. + RVI node URL: http://localhost:9001 + Service: genivi.org/vin/default_vin/hello + Press enter to quit: + +In another terminal, call `rvi_get_services` again to see the newly registered service: -The installer configures a release with default (insecure) credentials. + genivi.org/vin/default_vin/hello + +Invoke the service through `rvi_call` and the full service name: + + /usr/lib/rvi_core/rvi_call genivi.org/vin/default_vin/hello + +In terminal 1 (where you called `rvi_service`), you should see the following output: + + Service invoked! + args: {} + +In terminal 2 (where you called `rvi_call`), you should see the following output: + + RVI Node: http://localhost:9001 + Service: genivi.org/vin/default_vin/hello + args: {} + +You can pass arguments to a service call with the format name=value: + + /usr/lib/rvi_core/rvi_call genivi.org/vin/default_vin/hello \ + a=b message=hello + +## CREATE A RELEASE ## -See ```CONFIGURE.md``` for additional details on configuring and -creating a developer and production release. +The installer configures a release with default (insecure) values. +See ```CONFIGURE.md``` for details on configuring and creating a +developer and production release that can be launched.
\ No newline at end of file |