Description
Create Mendix application version.
NOTICE
set env variable "IEHUB_TOKEN" with token value to download licensefile from IEHUB
Usage
iectl publisher standalone-app version create-mendix-version [OPTIONS]
Options
-a, --appname <appname> Application Name
-v, --versionnumber <versionnumber> Version Number refers to versioning.
-y, --yamlpath <yamlpath> Path of docker compose yaml or folder path in case of kubernetes application.
--mdapath <mdapath> .mda file path to create mendix version
--mendixservice <mendixservice> name of the service (mendix app) in docker compose yaml
For Eg :
services:
mendix:
image: mymendiximage:1.0
mysql:
image: mysql:latest
....
--mendixservice "mendix"
-j, --imagetarjson <imagetarjson> List of services with the reference to their exported docker images. [Optional]
-n, --nginxjson <nginxjson> JSON map of nginx configuration. [Optional]
-c, --changelogs <changelogs> Release Notes. [Optional]
-m, --defaultmountpath To add default mount path (./publish/ and ./cfg-data/) [Optional]
-s, --redirectsection <redirectsection> Redirect Section [Optional]
-t, --redirecttype <redirecttype> Redirect Type["FromBoxReverseProxy","FromBoxSpecificPort","ExternalLink"] [Optional]
-u, --redirecturl <redirecturl> Redirect URL [Optional]
-r, --restredirecturl <restredirecturl> Rest Redirect URL [Optional]
-e, --eventservice <eventservice> 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). eg: --eventservice "{"servicename":"/opt/event.sock"}" [Optional]
-o, --authservice <authservice> Auth service enables an application to use IED auth service api's(Make sure the application is created by enabling checkmark - Use Edge Device Auth Service). eg: --authservice "{"servicename":"/opt/appsecrets.json"}" [Optional]
-x, --accesswithoutlogin Allow application access without login (Not applicable for industrial edge devices) [Optional]
--arch <arch> Application supported platform, value can be x86-64 or arm64.By default it is set to x86-64[Optional] (default: "x86-64")
-d, --devicefeatures <devicefeatures> The Applications will be allowed to trigger a Shutdown Operation, on the supporting device. The Device will gracefully shutdown in case triggered, by releasing the resources to avoid demaging integrity of the system. Especially useful for electric outage detection applications to trigger a shutdown in case of an outage. [Optional]
Options inherited from parent commands
-o, --output string output format
-q, --query string query on result of object
-v, --verbose verbose output
Example
ie-app-publisher standalone-app version create-mendix-version -a "myapp" -v 0.0.2 -y "docker-compose.yml" --mdapath "sample.mda" --mendixservice "service1" -c "changes logs" -n "{"nginx":[{"name":"nginxservice","protocol":"HTTP","port":"80","headers":"{\"proxy_cache_revalidate\":\"on\",\"proxy_cache_valid\":\"5m\"}","rewriteTarget":"/nginx","subPath":"app/", "isSecureRedirection":false}]}" -s "nginx" -t "FromBoxReverseProxy" -u "nginxservice/app/" -r "" -e {"nginx:/.publish/"} -m --arch "arm64" -d "API.Shutdown"