-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
build: Add script to run commands in udocker container #26129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
|
I find this fun and interesting, so I have tested this script on my computer to some degree, I have noticed that, while it does work for simple, normal packages, there do seem to be some packages that it isn't quite able to build yet, but which the normal
That might be an interesting feature for you to try to add to this PR! ( I have also noticed that it does seem to have a bit of a performance impact that
|
Yep, confirmed. You can change execution engine and it works. However I need to check if other execution engines works on Termux. udocker setup --execmode=R1 [Container ID] |
|
Thanks, when I try that, at the beginning it shows "Warning: this engine only supports execution as root", but still works, and it does build
Also, here is another package that it has an error with, but this one is the "big kahuna" - after seeing that it had a minor problem building for comparison, what happens inside real Docker: (in real Docker, it will run the Termux bionic-libc |

This script was rewritten from run-docker.sh using Gemini 2.5 Pro
This script uses udocker instead of docker. In my opinion, Termux should promote udocker over docker, as udocker does not require root access (it's rootless) or custom kernel modules. The only thing missing is an image for Docker ARM64 (so your phone emulates x86). So every smartphone user can potentially build a Termux application in an isolated environment.
I have tested the script in various ways and it seems to work correctly.