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?
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
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
Moderator: mcrossley
-
- Posts: 13
- Joined: Wed 02 May 2012 11:35 am
- Weather Station: WH1080PC
- Operating System: Linux
- Location: Ramsgate
Re: Docker Friendly
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.
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.
-
- Posts: 2473
- 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
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.
-
- Posts: 13
- Joined: Wed 02 May 2012 11:35 am
- Weather Station: WH1080PC
- Operating System: Linux
- Location: Ramsgate
Re: Docker Friendly
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.
it is just easier to set up with the config and data as a seperate folder, then you can point it at the folder.
- mcrossley
- Posts: 12756
- 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
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.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.
Moving the config file is possible but it low priority and would go on a very long to-do list.
-
- Posts: 13
- Joined: Wed 02 May 2012 11:35 am
- Weather Station: WH1080PC
- Operating System: Linux
- Location: Ramsgate
Re: Docker Friendly
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.
the entire container is rewritten so the config file is deleted from within it, so a remote symlink should work too.