Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Enable docker mode * Pass all unit tests * Consistant all error log format * Hack logrus to show correct call stack
- Loading branch information
Showing
47 changed files
with
528 additions
and
1,177 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 0 additions & 48 deletions
48
example/docker/var/db/openedge/module/localfunc/module.yml
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
version: V0 | ||
services: | ||
localhub: | ||
image: 'openedge-hub' | ||
expose: | ||
- 1883:1883 | ||
localfunc: | ||
image: 'openedge-function' | ||
resources: | ||
cpu: | ||
cpus: 1 | ||
memory: | ||
limit: 500m |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
example/docker/var/db/openedge/service/localfunc/service.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: localfunc | ||
hub: | ||
address: tcp://openedge-service-localhub:1883 | ||
username: test | ||
password: hahaha | ||
prefix: 'openedge-function-' | ||
functions: | ||
- name: 'sayhi' | ||
runtime: 'python27' | ||
handler: 'sayhi.handler' | ||
codedir: 'func-nyeosbbch' | ||
env: | ||
USER_ID: acuiot | ||
instance: | ||
min: 0 | ||
max: 100 | ||
timeout: 30s | ||
subscribe: | ||
topic: t | ||
qos: 1 | ||
publish: | ||
topic: t/hi | ||
qos: 1 | ||
logger: | ||
path: var/log/openedge-service.log | ||
console: true | ||
level: "debug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
mode: native | ||
logger: | ||
path: var/log/openedge/openedge.log | ||
console: false | ||
console: true | ||
level: debug |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,5 +23,5 @@ functions: | |
qos: 1 | ||
logger: | ||
path: var/log/openedge-service.log | ||
console: false | ||
console: true | ||
level: "debug" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.