Nc-integrity-fix - Script to resolve "Some files have not passed the integrity check" warnings

You can browse or checkout the code on github. The compiled (minified) versions are for better and faster transmission over the internet.

You can build the scripts bundle without minifying if you like.

But be aware, it is not simply a script, it is a complete framework, operating frrom within a sandboxed like side branch of the filesystem with automatic updates and permanent checks for integrity of the code itself. So, while the core of what the integrity fix script does is relatively easy, the ebtb Framework is like an operating system on itself, heavily relying on debian and dpkg. Alpine is so different, that it complicated to simply run the ebtb scripts from within alpine based Docker images. You should rather understand what it does and do the checks yourself but as I said, that should be the job of the maintainer/packager. If you think it is not, then stop using docker and run on bare metal. Then you can tweek around on the open heart of the server and take advantage of that enourmous freedom to use scripts like those from the ebtb bundle ;).

Yes, I know, one can do everything in docker, I do App- and Server Code Developement in Docker but I know how to manouver through it and would never try to run an ebtb script from within a docker container, since its purpose is completely different. I would work on the dockerfile to build a completely error free image instead of twirking around inside a built container without fixing the real error, because when I build a new image tomorow, based on the malconfigured Docker files, the problem would reappear.

h.t.h.


ernolf

Ah, that all makes perfect sense now. Thanks!

If it’s meant to run in a Debian-based environment, trying to translate that into an Alpine Docker image would indeed be difficult. I myself got hung up when troubleshooting my problem, because my brain was set on “Unbuntu minimal” and the image itself was based on Alpine.

So I was going: “Why… won’t this… apt-get… INSTALL… Just install, damn you!

“Oh… wait… It’s… Alpine? Oh, it’s apk? Oh. … DAWP! nevermind.”

I think your idea to review the unminified code just to see what the script is trying to do would be the right way to move forward if I was still stuck. Fortunately, something “clicked” for me, and I had the ephiphany that it was an add-on that was causing the integrity check failure, and not, in fact, the LSIO image (which was indeed perfect).

If I get the time & space, I think I will try to write up my findings in a troubleshooting guide, because it could save another NC admin crew a bunch of time & energy

And I thank for your time & energy, my friend!

P.S. I can see also that your shell kung-fu is formidable! I am impressed.

Thank you very much Mr Ernolf.