Erstellen einer App-Version mit GPU-Zugriff - Manual - Industrial Edge - Industrial Edge - Industrial Edge - Documentation of the Industrial Edge Platform - IEM - Hub - Industrial - Device - IED - Edge - IEH

Industrial Edge Platform Operation - APIs & Referenzen

Product
Industrial Edge
Product Version
v25.04
Edition
04/2025
Language
de-DE

Nach dem Erstellen der Anwendung mit iectl publisher standalone-app create

Um sicherzustellen, dass eine App ausschließlich auf einem oder mehreren Kernen ausgeführt wird, verwenden Sie die Ressourcenklasse nvidia.com/gpu unter x-resources , um auf die GPU zuzugreifen.

# 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:
        nvidia.com/gpu: 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

Erweiterte Nutzung

BEMERKEN

Anwendungen, die mit runtime:edge erstellt wurden, funktionieren möglicherweise nicht auf den älteren IEDs.