As it is, this Update Module does not support passing arguments to the container. However, it is pretty easy to create a new module based on this one that could achieve that.
Have a look at the Docker Update Module and generator source code (links in table above) for inspiration. One possibility could be to pass the parameters as an extra field in the meta-data contained in the Mender Artifact.
Hi IIuiscampos
I am trying build mender artifact for hello-world docker image…
ARTIFACT_NAME=“my-container-update-1.0”
DEVICE_TYPE=“solidrun”
OUTPUT_PATH=my-container-update-1.0.mender
DOCKER_IMAGES=“hello-world”
Hope my DOCKER_IMAGES is correct…
./docker-artifact-gen -n {ARTIFACT_NAME} -t {DEVICE_TYPE} -o {OUTPUT_PATH} {DOCKER_IMAGES}
Using default tag: latest
latest: Pulling from library/hello-world
Digest: sha256:6f744a2005b12a704d2608d8070a494ad1145636eeb74a570c56b94d94ccdbfc
Status: Image is up to date for hello-world:latest No help topic for 'module-image’
I see meta-data.json only in my directory
Mender Management server for production throwing following error, When i was trying to upload the Artifact…
Seems to be My mender server not supporting version 3…
My Mender Server version : 2.0
Mender-artifact tool version : 3.0
I created the mender artifact for Hello-world docker image with Mender-artifact 3.0 tool. But when I want to deploy above docker image to device, mender client on the device throwing below error. I think there is version mismatch …
My meta-mender version is thud-v2019.02-4-gdb6b761
May 23 12:54:37 imx6 mender[743]: level=error msg=“update install failed: installer: failed to read and install update: reader: unsupported version: 3” module=state
May 23 12:54:37 imx6 mender[743]: level=info msg=“State transition: update-store [Download] -> fetch-install-retry-wait [Download]” module=mender
I updated thud branch and now the version is thud-v2019.05-2-gae00ee7 and added below stuff in local.conf and i see mender_client 2.0.0 in logs from my device…
Now I created mender artifact for hello-world docker and uploaded this artifact i.e my-container-update-1.0 into server.This artifact size is 6kb and showing its type as rootfs-image in the server.
Downloaded the docker updated module in device @ /usr/share/mender/modules/v3.
After downloading this artifact into device, the device is getting rebooted and inventory shows current software as my-container-update-1.0.
Hope below steps i followed are correct… Initially my docker is not running on the board and board have a /usr/share/module/v3/docker script…
I have created mender artifact for hello-world docker and uploaded this artifact i.e my-container-update-1.0 into server.This artifact size is 6kb and showing its type as rootfs-image in the server.
Downloaded the docker updated module in device @ /usr/share/mender/modules/v3.
After downloading this artifact into device, the device is getting rebooted and inventory data on the server shows current software as my-container-update-1.0
How are you creating the Artifact? Using the docker-artifact-get script the resulting Artifact must be module-image, not rootfs-image. Can you copy here the commands you are using to create the Artifact?
I think that somehow you are creating a rootfs-image Artifact probably containing only the Docker metadata (6kb?), but then the device will try to install it as if it was an actual full image update.
./docker-artifact-gen -n {ARTIFACT_NAME} -t {DEVICE_TYPE} -o {OUTPUT_PATH} {DOCKER_IMAGES}
Using default tag: latest
latest: Pulling from library/hello-world
Digest: sha256:6f744a2005b12a704d2608d8070a494ad1145636eeb74a570c56b94d94ccdbfc
Status: Image is up to date for hello-world:latest
Thank you…
I have tried with out signing the mender articraft for hello-world docker… Now Docker Update module
able to download and start the docker. But mender server showing the current software for device as my-container-update-1.0 (This is docker release) …