Q.Is it possible to generate an artifact with no actual image payload? Q.…a small dummy payload?
Our CI environment, as well as our DVT/PVT lab, would benefit from the ability to deploy a ‘mock’ artifact to test units.
The intention would be to generate the smallest possible artifact, whos only functionality would be to deploy an ArtifactInstall_Enter state-script that would publish a status message to the CI servers.
This state-script would be designed to always exit >0, aborting the installation (we dont want to install a new image in this test environment); so, we would prefer not wasting the time/cellular data-cost of transporting an actual installable image along with the artifact.
@kacf Im starting to get tired of calling you a rockstar
…sadly, it looks like that solution requires the preexistence of an update module on the OTA client, which we cant currently accommodate, since most of our lab is a reflection of our currently deployed fleet - none of which have ‘update’ modules; or any modules, for that matter.
@kacf Yeah, it was probably user error on my part. While I didnt see –script documented in the mender-artifact help, running unix strings on the binary revealed plenty of references to the functionality commented in the code.
At any rate, I gave up on that approach due to the module requirement, and decided to simply build a normal root filesystem type artifact to deploy my state scripts for testing. Despite doing it this way, I was able to bring the entire artifact size down to 9K, including 2 state scripts. Thats much smaller than I was planning for, and will make deploying significantly less expensive, in both time and data costs.
Anyway, I know I say it every time you respond to one of my posts, but I’ll say again; I really appreciate the guidance.