Upgrade to Forky and NC 33.0.x#1
Conversation
|
Thanks for contributing @reetp! It's always great to see other working on or using code that you've made 😄 First, I would advise against using Forky for this image, since Forky is still Debian testing. For this container I prefer to use stable versions, so Trixie would make more sense to me. However, I do recognize that Trixie currently provides Besides that, there are a few other problems I've noticed, or things I would personally do differently: (docker-entrypoint.sh) Do not replace I would also avoid hardcoding Adding an The Because of the above, I do not think I can merge this as-is. I do appreciate the contribution though! |
|
Thanks for the comments - yes there is a lot I could change. I just wanted to lob something up before I forgot! I understand about trixie but wanted to be able to use the newer client. Seems OK so far but keeping a watching brief on it (I am testing this to use with two linux servers syncing to a hosted Nextcloud which is replacing my self hosted one which synced with unison for nearly 20 years!) locale - yup that's me :-) I did it quickly for me so yes it should be more generic. I added the mc and ll parts as I was hacking about inside the container and it was convenient for testing :-) I missed the ini file :-( Thanks for pointing them out. Rushing too much! I'll go back and try and make something a little more generic. |
|
Think if I leave this open it will show changes. I'll try to re-open. |
|
OK - might be a bit better. Think I changed the image names as I run this in two different places and needed different settings. I set it back to the 'default' name. I had to do something about the locales, and add it to the bashrc for the actual command to use in See what you think. Happy for you to grab anything you like and use it, or not! |
Thanks for the scripts!
I have updated various files if you are interested :-) Zero guarantee that my code is 100% trustworthy!
Some notes:
Use Forky
Use NC 33.0.x client
Use .env
Add a few tools for building, and in the container
Add language support to handle odd filenames eg Product©.jpg etc
Add localtime support
Update .netrc format
Add some extra config settings
Add full path names to save issues
Add multiple sync paths
Add a 'if running then wait' check
I just use this to build and deploy:
Issues:
Logs still an issue - set 50Mb but they don't seem to update/rotate.
I had some issues with big directories and the client appearing to exit at this rather than loop:
/usr/bin/su - nextcloudclient -c "nextcloudcmdIt then restarts from the entry point - I presume that is because there were errors rather than warnings so it exits with 1 instead of 0 and exits the loop.
I need to try and trace this to see if it can be avoided.
I've done this as a big blob - you may want to break it down a bit. I'll leave it with you.
Thanks again for the inspiration.