The natural result of having a system consisting of multiple Docker containers, is that you need to manage them.
Brewblox adds some additional complexity with the notion that every user has their own local deployment stack. Any container orchestration tool used must be sufficiently simple for it to be operated by end users.
- Supports Docker containers
- Simple to use
- Works well on single-host servers
- Can interact with hardware devices (eg. USB, Bluetooth)
- Supported by GUI application(s) capable of:
- First time setup
- Monitoring system state
- Updating the system
- Changing the system configuration at runtime
- Supported by Raspberry Pi
This has so far in the Brewblox project been the go-to choice for container orchestration. It is simple to install and configure.
While it works well when used by developers willing to SSH onto a server to rewrite a YAML file, it lacks a good GUI.
It also has been declining in popularity, compared to Docker Swarm and Kubernetes.
Docker Swarm is an alternative to docker-compose, and can even use the same configuration files (docker-compose.yml). It is integrated in Docker itself, making it a reliable choice.
A deal breaker is its lack of support for hardware devices. Docker swarm is built around the concept of hosts cooperating to serve a stack of services. In a multi-host environment, it is clearly a low priority to support interaction with hardware devices.
A feature proposal was submitted a day before this document was written. Even if the proposal is accepted and made a priority, it will be some time before it is released.
Major drawbacks are its complexity, and optimisation for multi-host systems.
sudo apt update && sudo apt upgrade -y
sudo apt install -y python3-pip
pip3 install ansible
Ansible is a task automation tool that can do much more than just managing docker containers.
While it is powerful, and likely very useful for power users, it is not simple to get started. It has an UI, but that is not free, and marketed at corporate users.
Users who already utilise Ansible can easily integrate Brewblox containers in their existing environment, but offering it as the default would only increase the barrier of entry for new users.
None of the orchestration tools on offer are perfect for IoT applications on a single Raspberry Pi.
While it lacks a good GUI, and is declining in popularity, docker-compose is arguably the simplest and best suited option.
As soon as Docker Swarm supports devices, it might be beneficial to switch over.