Welcome to the Cumulus Support forum.

Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080

Unofficial CumulusMX Docker Image

From build 3044 the development baton passed to Mark Crossley. Mark has been responsible for all the Builds since. He has made the code available on GitHub. It is Mark's hope that others will join in this development, but at the very least he welcomes your ideas for future developments (see Cumulus MX Development suggestions).

Moderator: mcrossley

Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Unofficial CumulusMX Docker Image

Post by Nossie »

Ok

So latest Armv8/Arm64 build should be working as 3.22.3 (build: 3214)

basic docker compose file attached - remove the txt extension to use (notice phpMyAdmin is arch specific, this needs changed)
Dockerfile attached - remove txt extension to use
build.sh attached, remove txt extension -- this is what I've been running after dropping multi arch - multiarch was only ever proof of concept, so apologies if you had been using this.
multiarch.sh attached - also remove txt to use

Once we finalize something I'll just zip anything up that's needed, but ideally for most people they should just need the compose file.

So I've never really messed with docker builds before, so this was more educational for me than anything else. Below is the multi arch guide, however I could only almost get it working with the 'hard' way and again I stopped looking into it further and did no testing on the other archs.

https://www.docker.com/blog/multi-arch- ... imple-way/
You do not have the required permissions to view the files attached to this post.
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
hucknz
Posts: 28
Joined: Mon 14 Nov 2022 2:21 am
Weather Station: WS69
Operating System: Docker

Re: Unofficial CumulusMX Docker Image

Post by hucknz »

Cool, I see what you're up to. Have you made many changes to the MXWeather.sh file?

In terms of the build process, I solved this using Github Actions. Not sure if you're familiar, or have access, but it's pretty cool. There are two scripts:

Check for release
This runs daily on a cron schedule and checks the build number on the cumulus repo against a text file in my repo. When it detects a difference it writes the new build number to the text file.

Build and push
This script watches the folder containing the text file in my repo and triggers any time it's updated. The build then creates whatever platforms are specified in the build arguments. When the builds are pushed they're tagged with the build number and latest, the idea being that there's then a history of images so if you want to roll back you can just specify a version tag.

If you want to take a look at how it works my repo is here: https://github.com/hucknz/cumulusmx

The build stuff is under the .github/workflows folder.
Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: Unofficial CumulusMX Docker Image

Post by Nossie »

I haven't made any changes to mxweather.sh

I really like those github actions, I'm not familiar with them at all, however what you have done seems much more useful than the guides I was trying to follow previously!

Can I ask, have you ever had any permission errors with yours?
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
hucknz
Posts: 28
Joined: Mon 14 Nov 2022 2:21 am
Weather Station: WS69
Operating System: Docker

Re: Unofficial CumulusMX Docker Image

Post by hucknz »

Thanks. I had fun learning how to use it and liberally borrowed ideas from others. The main benefit for me is the automation, I can just leave it there running in the background.

When you say permission errors do you mean with the build or in the container itself?
Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: Unofficial CumulusMX Docker Image

Post by Nossie »

Sorry,

My aim originally was that someone could just copy paste the docker compose details and install cumulus with just that information. However regardless of how I tried, the host would always create the initial container as root.

Have you had that experience or were you able to create it as a non root user?

Do you think we could maybe clone your information into a dedicated cumulus account (for docker hub and github) and hand the keys to an admin so that even if both of us disappear the project could still continue by someone that picks up the mantle?
Last edited by Nossie on Fri 18 Nov 2022 9:45 am, edited 1 time in total.
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
User avatar
HansR
Posts: 6926
Joined: Sat 20 Oct 2012 6:53 am
Weather Station: GW1100 (WS80/WH40)
Operating System: Raspberry OS/Bookworm
Location: Wagenborgen (NL)
Contact:

Re: Unofficial CumulusMX Docker Image

Post by HansR »

@admin: would it be interesting to make a separate docker forum somewhere (e.g. in the general/other block)? This does not seem to be a CMX issue and also does not seem to fit anywhere else. But maybe it does fit somewhere in an existing place ;)
Hans

https://meteo-wagenborgen.nl
CMX build 4070+ ● RPi 4B ● Linux 6.6.62+rpt-rpi-v8 aarch64 (bookworm) ● dotnet 8.0.1
BlueSky: https://bsky.app/profile/wagenborgenwx.bsky.social
Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: Unofficial CumulusMX Docker Image

Post by Nossie »

I would like to suggest a home automation section - which would contain

Docker/docker compose
home assistant
homebridge
MQTT
node red?
influxDB
possibly more?

That sort of thing, I realise that docker does not fit directly with home automation, however home automation does certainly fit with lots of docker. I do believe most of the above goes hand in hand.

As an example, even though it has taken me 4 months to get there after going down Hans fantastic Cutils path - all I ever wanted was to run CMX, export it to influxDB and then use it within my home assistant setup (btw without you Hans, I couldn't have had cool public graphs and a fantastic site to share with my town, so I would never ask for those 4 months back)- but this is not just my personal request, I genuinely feel there are many people out there that would be looking for something similar, just my two cents. :bash:
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: Unofficial CumulusMX Docker Image

Post by Nossie »

Arm64 arch updated to Patch release 3.22.4 - build 3215.
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
hucknz
Posts: 28
Joined: Mon 14 Nov 2022 2:21 am
Weather Station: WS69
Operating System: Docker

Re: Unofficial CumulusMX Docker Image

Post by hucknz »

My aim originally was that someone could just copy paste the docker compose details and install cumulus with just that information. However regardless of how I tried, the host would always create the initial container as root.
I think this might be one of the downsides of docker, it runs as root. I believe there's an alternative called Podman that is effectively a non-root user but I don't have any experience with it.

With the container being created as root, how does that cause problems?
Do you think we could maybe clone your information into a dedicated cumulus account (for docker hub and github) and hand the keys to an admin so that even if both of us disappear the project could still continue by someone that picks up the mantle?
Happy to contribute to that. I did suggest in my initial comment (on the original thread) that if the Cumulus MX team were interested I'd be happy to contribute to an "official" docker build pipeline under their repo so all of the things can live on if one or both of us has to drop out. Still more than happy to support that effort.
Arm64 arch updated to Patch release 3.22.4 - build 3215.
Cool! I saw there was a new release today, here's hoping the automated process picks that up later today (runs around 7-8pm UTC) and builds as expected.
Last edited by hucknz on Mon 21 Nov 2022 6:31 pm, edited 1 time in total.
hucknz
Posts: 28
Joined: Mon 14 Nov 2022 2:21 am
Weather Station: WS69
Operating System: Docker

Re: Unofficial CumulusMX Docker Image

Post by hucknz »

Looks like the build ran as expected, b3215 is up on docker hub.
Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: Unofficial CumulusMX Docker Image

Post by Nossie »

hucknz

sorry I'm going to get back into this in the next few days - do you know if usb support works within your environment?
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
hucknz
Posts: 28
Joined: Mon 14 Nov 2022 2:21 am
Weather Station: WS69
Operating System: Docker

Re: Unofficial CumulusMX Docker Image

Post by hucknz »

No worries. By usb support you mean being able to connect the display for the station via usb to sync data? If that’s the case then yes. I’m using it with a Fine Offset clone.
Nossie
Posts: 424
Joined: Tue 16 Aug 2022 8:01 pm
Weather Station: Ecowitt 2551
Operating System: Raspberry Pi5 Debian Bookworm
Location: Stewarton, East Ayrshire UK
Contact:

Re: Unofficial CumulusMX Docker Image

Post by Nossie »

the base image that we used had a build for usb and one without usb - I believe with his image it wouldn't boot or would error out if you didn't have usb connected.

Do you know if your image boots without USB? or would it work if you commented it out of the docker-compose file?

I'll be honest, I don't think the creators are interested in setting up an official docker repository - but I'd rather get it off our own personal accounts so that if either of us disappears it can still be maintained. We should setup a separate github for the releases, you and I have admin and keep an admin login that we can give to Freddie or one of the other board admins for the future.
Ian.

http://www.StewartonWeather.com
Containerised Cumulus[MX] 4.2.1 (build: 4040) ● CumulusUtils Version 7.1.1● Ecowitt 2551/WH65/T&HP/WH57/WH45/3x WH51 ● Pi 5 8GB ● Debian Bookworm ● Ubuntu Server Host
hucknz
Posts: 28
Joined: Mon 14 Nov 2022 2:21 am
Weather Station: WS69
Operating System: Docker

Re: Unofficial CumulusMX Docker Image

Post by hucknz »

I don’t think there’s any issue running it without the usb pass through, I think that’s how I got it set up originally, but I can try testing it and confirm.

Happy to setup a new repo if that’s easiest. Have you asked the admins if they’d be open to creating one within the main cumulus repo? At least if we ask we get a clear answer either way.
hucknz
Posts: 28
Joined: Mon 14 Nov 2022 2:21 am
Weather Station: WS69
Operating System: Docker

Re: Unofficial CumulusMX Docker Image

Post by hucknz »

I can confirm the container starts fine without the USB passthrough.
Post Reply