I’m working on making Docker the default way of installing BrewPi.
This will streamline the install process across platforms and will have the following benefits:
It is much faster
It is easier, because all the steps to install are already performed in the docker image. The only thing the user needs to do is install docker and deploy the image. No messing with setting up user and cloning git repos.
The data lives outside of the container. Updating can be done by just destroying the container and starting a fresh one.
Modified images contributed by users can be installed with ease too.
This should also make it much easier to connect to multiple BrewPi Sparks from a single pi.
BrewPi runs in an isolated environment, without the need to install any packages on the host.
I took inspiration from existing BrewPi containers, mainly the work of Geo.
Docker purists might tell me that I should use a container for each separate process, but I think running the brewpi script, nginx and php in a single container is probably easier to manage for novice users. It’s not like we’re trying to optimize for performance here.
I created a container based on Ubuntu and one on Raspbian. I have only tested them on a pi (running HyriotOS jessie) and on Ubuntu 17.
If you want to help, it is very much appreciated. You can do one of these things:
Take the instructions and docker container for a spin and report back
Fork and improve the container and send me a PR.
Please help improve and expand the documentation on our new wiki! If you follow the install instructions and have time to make a few screenshots, that would be great too.
By the way, solid instructions. Didn’t get any errors. Couple of questions though.
I tried all the docker installation and got to the Install Portainer which looks to have worked. Logged into it and saw 2 containers. The Brewpi one and another one called “loving_beaver”. Odd, per your instructions there was only supposed to be one. What is this other one?
Also, this is probably an easy one, how do you connect to the brewpi webpage now to manage the spark and such? I am not familiar with any of the docker/portainer software.
So my network isn’t on the 192.168.1.1 subnet (I think you call it that). So I followed all the steps but in Portainer there isn’t a port to click on nor can I use my subnet with a :80 at the end to bring up the site.
Ok. Thanks for your help. Looks like I got everything going.
What about mods for Tilt and stuff? I understand you cannot support that within your typical upgrades and such. But my question is more from a Docker/container standpoint. Can you still modify stuff within a container and have it boot into those changed mods with no issues?
I assume if you upgrade, if those mods are contained within the container then they will overwritten - right?
I tried to follow the instructions, but now I’m stuck.
My Spark is now connected to my WiFi net (led glowing green). No devices/USB connected.
Fing shows both Pi and Spark as connected to the network
Portainer shows brewpi/brewp-raspbian container as running
The “Published Ports” link takes nowhere (0.0.0.0 )
I’m still able to see the web interface at my usual Pi web address.
The script isn’t running
Looking at stderr window, I see the following lines repeating:
Jul 22 2017 19:11:38 Notification: Script started for beer 'My First BrewPi Run’
Jul 22 2017 19:11:38 Connecting to controller…
Jul 22 2017 19:11:38 Opening serial port
Jul 22 2017 19:11:48 Errors while opening serial port:
Could not open port socket://192.168.1.94:6666: [Errno 111] Connection refused
It looks like Spark isn’t allowing Pi to access…
Did I make any mistake?
I have unRAID NAS and it supports Docker. How much different would the setup be?
NOTE: I have 2 Spark v2 connected to 2 fermenters. Would need to have them both connected WiFi and display as /conical1 /conical2
From reading https://lime-technology.com/docker-guide, doesn’t seem like it will be as streamlined as it is for Synology NAS until a repository address is provided to add to unRAID Docker repo list for BrewPi to then be an option to setup.
I can’t really write that template, because I don’t have a system to test it on. I understand that with such a template, you could use the GUI to pick the template, but can’t you create new docker container from the cli?
It seems like that’s what the UI does, it’s a menu to form the right docker command.
Actually, the syntax of the xml file seems very simple.
I made a guess here:
Please give it a try, fork it and fix it and send a PR for a working version
I cannot test it, so if you can make it work and send me a pull request for a working version,t that would be great.
I picked port 8080 as default. If that clashes with other apps, please change that too.
I was able to successfully get my new spark connected via docker. One item about editing the config.cfg, a clean install only has config.cfg.sample. Just copied that to config.cfg and used vi to edit the port line to connect to the new BrewPi 3 via WiFi. I installed and configured the sensors and SSR’s but for some reason the device stays in idle mode when after I put in fridge constant and set the temperature to something that should kick on one of the outlets. May not have configured the devices correctly.
One item I don’t see how to do is pull the latest version of BrewPi and the firmware. There is no upgrade script in the docker BrewPi image. I assume the intent is to just destroy and repull the docker image, but not sure how to ensure the Photon has the latest firmware.