mdeploy microsevice is defined to do the following: - Provides the view of the cluster, with nodes and services running on them.
If this is your first time developing edge microservice, please follow the edge microservice development quick start guide from mimik's developer portal.
The build script default.yml is specified under config directory.
- Install dependencies:
npm install - Run the build script:
npm run build - Package to container:
npm run package
For mobile application development, deployment is programmatically by Android or iOS Wrappers, learn more about it:
For microservice development, things you will need:
- edgeSDK running on the deployment targeted device.
- Obtained edge Acess Token and associate the device from edgeSDK OAuth Tool.
- Run the following commands under the same directory of your containerized microservice file:
curl -i -H 'Authorization: Bearer <edge Access Token>' -F "image=@<file name>.tar" http://<target IP address>:8083/mcm/v1/images
- To run the microservice after successful deployment, with environment variables:
curl -i -H 'Authorization: Bearer <edge Access Token>' -d '<env Variables>' http://<target IP address>:8083/mcm/v1/containers
-
is localhost if running on local
-
is the packaged file (*.tar) generated in 'deploy' folder of the project
-
is provided by edgeSDK OAauth Tool. Copy the token and replace
-
are provided in the repo file local/start-example.json. Omit variables inside start-example.json file (if required), copy the text and replace
-
For more information and explanation, you can visit our mCM container management API references and general guide on packaing, deployment, and exporting microservice.