After creating application using iectl publisher standalone-app create
Event Service is a feature provided by edge runtime for applications to receive and publish events. The communication is based on Unix Domain Socket(UDS).
The purpose of this service is to publish some important events so that applications (event listeners) can act upon such events.
Event Service also acts as listener when installed applications on IED publishes events, these events are then pushed to IEMA using REST APIs.
IEMA exposes APIs to list these application events per IED basis.
# examples are based on given yaml
version: "2.4"
services:
nginx: #serviceName to be used in --redirectsection, to tell device to use this service for app redirection.
image: nginx:alpine
restart: always
mem_limit: 200m
Use argument --eventservice "{"servicename":"/opt/event.sock"}"
$ iectl publisher standalone-app version create \
--appname "my cool app" \
--yamlpath "/path/to/folder/with/docker-compose.yaml" \
--versionnumber "1.0.0" \
--eventservice "{"nginx":"/opt/event.sock"}"
--nginxjson '{"nginx":[{"name":"ui","protocol":"HTTPS","port":"80","headers":"","rewriteTarget":"/"}]}' \ # nginxjson is json map of docker compose service name and array of reverse proxy.
--redirectsection "nginx" \ # redirectsection requires the service name within docker-compose which contains the container that shall be exposed
--redirecttype "FromBoxReverseProxy" \ # redirecttype is either FromBoxSpecificPort for direct port exposure or FromBoxReverseProxy for reverse proxy exposure
--redirecturl "ui/" \ # redirecturl is the port which shall be exposed from your container
--restredirecturl "" \ # restredirecturl path will be used upon redirect to your application