Die App Version besteht aus allen Informationen zum Docker-Image sowie der Docker-Compose-Datei Ihrer App. Sie legt ferner die App-Version fest.
Eine App-Version können Sie mit dem folgenden Befehl erstellen:
$ iectl publisher standalone-app version create \
--appname "my cool app" \ # You have to select a previously created application available within your workspace
--changelogs "initial release" \
--yamlpath "/path/to/folder/with/docker-compose.yaml" \ # path to your docker compose yaml file
--versionnumber "1.0.0" \ # This version must be conformant to the semantic versioning specification
--redirectsection "my service" \ # This requires the service name within docker-compose which contains the container that shall be exposed
--redirecttype "FromBoxSpecificPort" \ # redirecttype: Either FromBoxSpecificPort for direct port exposure or FromBoxReverseProxy for reverse proxy exposure
--redirecturl "8080" \ # redirecturl: The port which shall be exposed from your container
--restredirecturl "" \ # restredirecturl: This path will be used upon redirect to your application
Mit den angegebenen Einstellungen wird Port 8080 des Diensts "my service" bereitgestellt. Der Port wird direkt zur Verfügung gestellt, entweder mit HTTP oder HTTPS, je nach Ihrer App.
Damit wird die folgende URL bereitgestellt: http oder https://{industrial-edge-device-ip}:{zufälliger Port}
BEMERKEN
Wenn Ihre Anwendung über keine Schnittstelle verfügt, verwenden Sie diesen Umleitungstyp.
--redirectsection "" \
--redirecttype "ExternalLink" \
--redirecturl "" \