Welcome to the Cumulus Support forum.

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

Cumulus MX V4 beta test release 4.0.0 (build 4019) - 03 April 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

Docker Friendly

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

Post Reply
Jmilesy
Posts: 13
Joined: Wed 02 May 2012 11:35 am
Weather Station: WH1080PC
Operating System: Linux
Location: Ramsgate

Docker Friendly

Post by Jmilesy »

Is it possible to have the file structure more Docker Friendly?

so have the Data and setting/config files in a subfolder so that they can be stored outside the docker image?
freddie
Posts: 2477
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Docker Friendly

Post by freddie »

Would symbolic links work for you?
Freddie
Image
Jmilesy
Posts: 13
Joined: Wed 02 May 2012 11:35 am
Weather Station: WH1080PC
Operating System: Linux
Location: Ramsgate

Re: Docker Friendly

Post by Jmilesy »

to be honest, i am not sure

For example, if the config folder was in the cumulus folder, it could actually be stored outside the container, and docker could reference the external folder.

for example, as it is Cumulus.ini is stored in the main folder and would be wiped as soon as the container was updated or rebuilt.
freddie
Posts: 2477
Joined: Wed 08 Jun 2011 11:19 am
Weather Station: Davis Vantage Pro 2 + Ecowitt
Operating System: GNU/Linux Ubuntu 22.04 LXC
Location: Alcaston, Shropshire, UK
Contact:

Re: Docker Friendly

Post by freddie »

Yep, I get where you're coming from. So if you stored the ini file (and the data and backup folders) outside the image and had symbolic links to the locations from inside your docker image then when you tear down and stand up your container the symbolic links (being part of the image) should allow MX to access the untouched configuration and data/backups.
Freddie
Image
Jmilesy
Posts: 13
Joined: Wed 02 May 2012 11:35 am
Weather Station: WH1080PC
Operating System: Linux
Location: Ramsgate

Re: Docker Friendly

Post by Jmilesy »

basically, but docker deals with all of that for you.

it is just easier to set up with the config and data as a seperate folder, then you can point it at the folder.
User avatar
mcrossley
Posts: 12767
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Docker Friendly

Post by mcrossley »

freddie wrote: Wed 16 Oct 2019 5:25 pm Yep, I get where you're coming from. So if you stored the ini file (and the data and backup folders) outside the image and had symbolic links to the locations from inside your docker image then when you tear down and stand up your container the symbolic links (being part of the image) should allow MX to access the untouched configuration and data/backups.
I don't use docker, but I use sym links to place all the temporary files and realtime.txt etc on a ram drive to save disk wear on my rPi. A sym link for the config file should work fine and as Cumulus.ini is not part of the Cumulus distribution it would be be overwritten by updates either.

Moving the config file is possible but it low priority and would go on a very long to-do list.
Jmilesy
Posts: 13
Joined: Wed 02 May 2012 11:35 am
Weather Station: WH1080PC
Operating System: Linux
Location: Ramsgate

Re: Docker Friendly

Post by Jmilesy »

it sounds like the symlink will work, as this could be set up outside the docker file, it would just need to set up the links to those files on the docker.

the entire container is rewritten so the config file is deleted from within it, so a remote symlink should work too.
Post Reply