Help with upgrade.sh - can I preserve my customizations? #408
-
TLDR: Is there a way to customize the influxdb.conf file or powerwall.yml file so that my customizations won't be overwritten when running upgrade.sh? I think powerwall-extend.yml may handle the yml, but I'm not clear on how that works and I don't see anything similar for the conf file. Details: I did have to make some customizations during the install, and when I ran upgrade.sh for the first time yesterday I found out that my changes were not preserved. I'm hoping someone more familiar with the scripts can tell me if there is a way I can set things up where I won't have to make manual changes after each upgrade. The two things I ran into involved powerwall.yml and influxdb.conf:
instead of the original setting where tesla-history is tagged with the solar-only profile. Reading through the forum, I think I can preserve this customization by creating a powerwall-extend.yml with that change, but that means that going forward I'll have to watch for changes to the default powerwall.yml and copy them into my extended file. Can anyone (tagging @BJReplay) confirm if that's how that works?
It wouldn't be too hard to just make a note to myself to make these changes manually after each upgrade, but I'd prefer to have them preserved if that's possible. p.s. - I'm very happy I discovered that the DD-WRT firmware on my router can apply multiple DNS names per IP. I have three Pi docker hosts and a Windows PC with interconnected services. When moving a service from one machine to the other I can just update the router to send mysql.local, influxdb.local, mqtt.local, ntp.local, nodered.local etc to the new IP and everything just keeps working. If I had to go through and change the IP in every reference to a service when moving them I think I'd end up leaving everything in place until something broke and forced my hand. Once I went through and replaced IPs with DNS names everywhere, everything became portable. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
I'm not sure how this can be done with influxdb.conf and will need to investigate this further. But, with your Docker Compose containers you can modify only certain elements of the existing services by using the i.e. create a version: "3.5"
services:
tesla-history:
profiles:
- default And this would just override the "profiles" attribute of the tesla-history container. All other values would remain the same, including the container version etc. from the main This way when there are upgrades to Another use could be pinning the version of a container so that it does not upgrade with the main project/changes. e.g. creating version: "3.5"
services:
pypowerwall:
image: jasonacox/pypowerwall:0.6.2t28 Be careful with certain attributes however that contain lists, like ports, as it does not always "override" the value but instead will add your values to the list. For InfluxDB config however, I will have a look into a way we could do something similar with user specific config settings. |
Beta Was this translation helpful? Give feedback.
-
Since you tagged me, even though @mcbirse has already replied, I'll add some commentary - the So, yes, you can put your customisations in |
Beta Was this translation helpful? Give feedback.
-
It looks like Jason agrees we should change the default settings in InfluxDB, so that issue is resolved. Thank you both for the explanation of how to use powerwall-extend.yml. |
Beta Was this translation helpful? Give feedback.
I'm not sure how this can be done with influxdb.conf and will need to investigate this further.
But, with your Docker Compose containers you can modify only certain elements of the existing services by using the
powerwall.extend.yml
file. You don't have to redefine the entire service.i.e. create a
powerwall.extend.yml
with the below content:And this would just override the "profiles" attribute of the tesla-history container. All other values would remain the same, including the container version etc. from the main
powerwall.yml
service definitions.This way when there are upgrades to
powerwall.yml
your …