Comments (4)
Hi, is that application located in catalog?
from iectl-workflow.
Hi, the application is not published in the catalog. My idea was that it should not be published into the catalog until it's really ready for usage. So my aim is to automate deployment of (possibly non-functional) development versions of the application in to a testing device, so I can test it before publishing.
This is doable from the application page in web gui, but I see no way of doing it with iectl
.
from iectl-workflow.
Hi, you need to first import the application to catalog from where it is possible to deploy the application to the edge device. Please note that we will update the exaple to the latest iectl 2.0
from iectl-workflow.
So the problem is that we do not want to publish an unfinished and quite possibly broken application into the catalog. Instead, we just want to install the unpublished application onto a testing device, so we can verify that it actually works before publishing. This should be doable with iectl
alone, as it is also by using the web interface of IEM.
I have worked around this by using curl
and jq
for making the necessary http calls instead of using iectl
.
The procedure goes like this:
- Get access token for further requests by posting username & password to
$IEM_URL/p.service/api/v4/login/direct
with curl - Use
iectl
to create and upload a new unpublished version of the application. - Get application details with curl from
$IEM_URL/p.service/api/v4/dev-apps/$APP_ID
- Use jq to find and extract version identifier from the response JSON
- Finally use curl to make a FORM post to:
$IEM_URL/p.service/api/v4/applications/$APP_ID/versions/$VERSION_ID/batch?operation=installApplication&isRetainSecret=false&allow=true
with infoMap containing the deviceId of our testing device.
from iectl-workflow.
Related Issues (10)
- Sentence too complex HOT 1
- issue template HOT 1
- Spelling HOT 3
- Clone repository and prepare the environment HOT 1
- Activate IEM HOT 2
- Link to iectl documentation HOT 1
- Broker link HOT 2
- IP-Based setup HOT 1
- Absoluth Path HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iectl-workflow.