balena-os / balenaos-in-container

Run balenaOS as a docker container
https://www.balena.io/os/
Apache License 2.0
49 stars 14 forks source link

Add compose file #37

Closed robertgzr closed 3 years ago

robertgzr commented 3 years ago

Change-type: minor Signed-off-by: Robert Günzler robertg@balena.io

robertgzr commented 3 years ago

@rahul-thakoor please give this another try

you can run multiple devices like this:

$ docker-compose -p device0 up -d
$ docker-compose -p device1 up -d

remember to add --force-recreate --build to create new images/containers to pick up the changes

This should allow you to bring the devices down and up again until you remove the volumes with:

docker-compose -p <device> down -v
robertgzr commented 3 years ago

@rahul-thakoor @alexgg how did testing go?

rahul-thakoor commented 3 years ago

@robertgzr the new changes made it easier to use

hopefully, if this is part of the cli, it would be easier to pass the config.json