Subj : Re: Move .ini files from /sbbs/exec to /sbbs/ctrl To : Tracker1 From : Gamgee Date : Thu Sep 22 2022 07:37:00 -=> Tracker1 wrote to Gamgee <=- Tr> On 9/12/22 05:30, Gamgee wrote: >> So, it's effectively not possible to separate executable files >> from data/configuration for Synchronet... or to cleanly >> update/upgrade those executable files in a read-only fashion. > The second half of your statement above doesn't make much sense > to me. How would you upgrade something that is "read-only" in > the first place? I don't have any problems updating my ../exec > directory. Tr> Imagine an executable on a read-only CD... but the data is stored Tr> on a hard drive... to move to the next version, you shut down the Tr> program, and swap out the CD to one with the new version. You Tr> effectively do the same with a docker image. You just get the Tr> new image. Tr> /sbbs/exec - read-only image mount Tr> /sbbs/(data|ctrl|...) - read-write mount Tr> Generally my updates go... Tr> 1. cd ~/sbbs Tr> 2. docker pull bbsio/synchronet:nightly Tr> 3. docker-compose up -d Tr> 1. keeping ~/sbbs as my (outside docker) location. Tr> 2. pull the latest nightly image from dockerhub Tr> 3. detects the underlying image changed, (re)starts related Tr> instance(s) Tr> -------- Tr> In practice it's /sbbs-data/(data|ctrl|...) that gets symlinked Tr> at runtime. I also save a version.txt file in exec/ that gets Tr> compared to ctrl/ at startup, so that it runs the js version Tr> update script if/when they don't match. Tr> But having data written to /sbbs/exec that part of it will fail Tr> when moving to a new version. I could move (if not already there) Tr> /sbbs/exec/*.ini to /sbbs-data/exec/*.ini, and then symlink back Tr> to exec, which is what I'll probably do... just kind of a pain. Okay...... I don't believe you had mentioned anything about docker in this context up until now...., so perhaps you can understand my original confusion...? As for the rest of that above... I don't use or know anything about Docker, and can't imagine wanting to go through that much hassle for some "benefit" that it would gain me... I'll add this to my list of YARNTWTUD. (Yet another reason not to want to use Docker). :-) .... A woman drove me to drink, and I never had the courtesy to thank her. --- MultiMail/Linux v0.52 þ Synchronet þ Palantir BBS * palantirbbs.ddns.net * Pensacola, FL * Origin: Vertrauen - [vert/cvs/bbs].synchro.net (1:103/705) .