| Crates.io | ubuild |
| lib.rs | ubuild |
| version | 0.1.0 |
| created_at | 2025-02-28 10:22:46.455186+00 |
| updated_at | 2025-02-28 10:22:46.455186+00 |
| description | Run commands in a portable environment |
| homepage | |
| repository | |
| max_upload_size | |
| id | 1572644 |
| size | 82,820 |
The ubuild, standing for universal build, builds softwares in the universal environment.
# ubuild <IMAGE> <COMMAND>
$ ubuild rund:master make LIBC=gnu
# One-line command is equivalent to (docker engine)
$ sudo docker run --rm \
-v $HOME:$HOME \
-v $HOME/.ssh:/home/$IMAGEUSER/.ssh:ro \
-w $(pwd) \
rund:master \
bash -c "source /home/$IMAGEUSER/.bashrc && make LIBC=gnu"
Note that DO NOT use ubuild with sudo. Otherwise, the default base path
will be the root's home directory. By default, the ubuild starts the
container with sudo. If you don't want this, a --no-sudo argument should
be applied.
Please refer to ubuild -h for more usages.