I tried to modify some stuff in front-end templates of Screenly OSE deployed on my Rpi4 few days ago.
I followed BalenaHub Tutorial, everything went fine.
Recently, I logged to all services by online terminal and installed nano to modify *.html files
After rebooting, everything disappeared and worst, during the session I can’t see any changes by reaching local or public address.
Did I miss something?
Do you know how to modifiy that files and get it persistent?
After command line sudo apt install nano I was able to change all templates *.html with that simple editor. I can’t see changes in front-end (anywhere I changed it and worst, i lose my previous installation of nano or my changes in files).
ok thanks for the explanation. What is happening is that you are trying to change the code inside a docker container. By definition, the data inside a container does not persist. To have persistent data, a volume would be needed (but this is also not the right way to achieve what you want to do). The right way to change the code of your application is to:
Wow! I understand, sorry for that, it’s my first time and I discover how works docker container. I have to improve my knowledge about that! And read a lot… I don’t know why the data can’t persist in it but there is probably a very good reason. I thought it’s possible to write or modify data and save it as I use to do.
I don’t know what is a volume but I have to learn more about it too. Do you have some links to share to improve myself? Maybe OpenClassrooms or websites like that??
I get it, I already pushed Screenly by using CLI the first time (BalenaHub Tutorial). I understand that I have to push my modified code before pushing it on the device by Balena CLI. I will use vsCode to edit my code.
Thank you very much for your step-by-step explanation, for your time, and helping a newbie like me!!
Finally, I tried the Rahul-thakoor’s proposal and pick up the scheduler part of that.
I lost everything (all dockers container) for only unfunctional one : Main after pushing it by Balena-CLI
I didn’t evaluate good enough what i was doing exactly. I don’t want to annoy you more. I have to study master classes and get better in Balena stuff:smiley: (specially dockers)
The good news is I started again to push my first App (Screenly OSE) with improvements I did and everything works!
It took 8 minutes.
Question… can I say it’s like “compiling” a project to my device? Is there a way to only send static *.html files without sending all directories and files to the device?
How can I add a container docker with cron task see above in here which manages only the cron tasks?
It seems the delta update is not available for me. I read everything about it, and found by default the RESIN_SUPERVISOR_UPDATE_STRATEGY is already set (download-to-kill).
I guess there is nothing to explore more that way to force the update’s listing available…
Have I to wait for the capability to do it? Or there is something to do to lauch (and force) the delta update?
Thanx for your answer. I made a new application and add a new device (Rpi 4 mod.B 8Go RAM and 128 Go SD card to make some tests), and I have still the same BalenaOs version (2.73.1+rev1) and updated Supervisor to v12.5.6 (was 12.4.6 when I flashed SD card first).
I guess I have the last “mouture”. Never mind, I improve myself, day by day, step by step, and dockers are more familiar to me… I have to study more and better the BalenaCloud philosophy.