Very simple question that I can’t find the answer to after several hours of searching. I need a docker compose update to target devices.
On my target devices the docker-compose.yml file is located here:
/usr/local/app/dockerApp/docker-compose.yml
How do create an artifact that updates this docker-compose.yml and its associated images? Despite a few hrs of trying I’m unable to determine how to do this. I must imagine this is a common scenario.
Hi @grevelle,
Sounds like the Application Update Module should be a fit: Tutorial: Docker Compose update | Mender documentation
Greetz,
Josef
Thanks @TheYoctoJester. I saw that as well. That tutorial doesn’t reference the location of the docker compose file. I am going to try changing both the docker compose file and the images using the docker compose update module and see what happens.
Hi @grevelle,
The docker-compose.yml
in the example is this: Tutorial: Docker Compose update | Mender documentation, see the file name created in the snippet.
In short, the workflow is like this:
- you create the
docker-compose.yml
on the dev host.
- the Application Update Module generation script bundles it together with all required container images into a Mender Artifact
- the Artifact gets deployed
- the Application Update Module on the device unpacks the container images and runs the
docker-compose.yml
Greetz,
Josef
Thanks @TheYoctoJester! If I run into any issues I will share here.