After creating application using iectl publisher standalone-app create
To ensure that an app runs exclusively on one or more cores, use the siemens.com/isolated_core resource class under x-resources example.
# examples are based on given yaml
version: '2.4'
services:
nginx:
image: 'nginx:latest'
volumes:
- './publish/:/publish/'
- './cfg-data/:/cfg-data/'
x-resources: # start: add this block in yaml
limits:
siemens.com/isolated_core: 1
runtime: iedge # end
mem_limit: 55mb
$ iectl publisher standalone-app version create \
--appname "my cool app" \
--yamlpath "/path/to/folder/with/docker-compose.yaml" \
--versionnumber "1.0.0" \
--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
Advance Usage
NOTICE
Application created with runtime:edge might not work on the older IEDs.