Coder Social home page Coder Social logo

Comments (4)

paveel-h avatar paveel-h commented on June 3, 2024

Hi, is that application located in catalog?

from iectl-workflow.

joonakilpinen avatar joonakilpinen commented on June 3, 2024

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.

paveel-h avatar paveel-h commented on June 3, 2024

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.

joonakilpinen avatar joonakilpinen commented on June 3, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.